UnityVectorExtensions.ProjectOntoPlane Method
From Cinemachine
Cinemachine
![]() | UnityVectorExtensionsProjectOntoPlane Method |
Returns a non-normalized projection of the supplied vector onto a plane
as described by its normal
Namespace: Cinemachine.Utility
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
public static Vector3 ProjectOntoPlane( this Vector3 vector, Vector3 planeNormal )
Cinemachine.Utility.UnityVectorExtensions.ProjectOntoPlane = function(vector, planeNormal);
Parameters
- vector
- Type: Vector3
[Missing <param name="vector"/> documentation for "M:Cinemachine.Utility.UnityVectorExtensions.ProjectOntoPlane(UnityEngine.Vector3,UnityEngine.Vector3)"]
- planeNormal
- Type: Vector3
The normal that defines the plane. Cannot be zero-length.
Return Value
Type: Vector3The component of the vector that lies in the plane
