Vector3.Project(Vector3 vector, Vector3 onNormal)
Projects a vector onto another vector.
Parameters:
Name | Type | Description |
---|---|---|
vector | Vector3 | |
onNormal | Vector3 |
Returns:
type | Description |
---|---|
Vector3 | Projected Vector |
Usage
---@type Vector3
local vector;
---@type Vector3
local onNormal;
local val0 = Vector3:Project(vector, onNormal)
Extra Detail
https://docs.unity3d.com/2019.3/Documentation/ScriptReference/Vector3.Project.html