FullBodyVrMath
csharp
public static class FullBodyVrMathNamespace NodeWorld.Avatar.IK.
Math helpers of the full-body IK.
Methods
FromToRotation
csharp
public static Quaternion FromToRotation(Quaternion from, Quaternion to)The rotation that turns from into to.
Flatten
csharp
public static Vector3 Flatten(Vector3 v, Vector3 up)v without its component along up.
ExtractVertical
csharp
public static Vector3 ExtractVertical(Vector3 v, Vector3 up, float weight)The component of v along up, times weight.
ExtractHorizontal
csharp
public static Vector3 ExtractHorizontal(Vector3 v, Vector3 up, float weight)v without its component along up, times weight.
ProjectPointToPlane
csharp
public static Vector3 ProjectPointToPlane(Vector3 point, Vector3 planePoint, Vector3 planeNormal)point projected on the plane through planePoint with the normal planeNormal.
ClampRotation
csharp
public static Quaternion ClampRotation(Quaternion rotation, float clampWeight, int iterations = 2)rotation pulled back toward no rotation: 0 leaves it, 1 removes it, with a smooth falloff (iterations).
