Method Project
Project(Vector3, Vector3)
Projects a vector onto another vector.
Declaration
public static Vector3 Project(Vector3 vector, Vector3 onNormal)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The vector to project. |
Vector3 | onNormal | Vector to project onto, does not assume it is normalized. |
Returns
Type | Description |
---|---|
Vector3 | The projected vector. |