Class AnimationRuntimeUtils
Inheritance
System.Object
AnimationRuntimeUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Syntax
public static class AnimationRuntimeUtils
Methods
Lerp(Vector3, Vector3, Vector3)
Declaration
public static Vector3 Lerp(Vector3 a, Vector3 b, Vector3 t)
Parameters
| Type |
Name |
Description |
| Vector3 |
a |
|
| Vector3 |
b |
|
| Vector3 |
t |
|
Returns
Declaration
public static void PassThrough(AnimationStream stream, TransformHandle handle)
Parameters
SolveFABRIK(NativeArray<Vector3>, NativeArray<Single>, Vector3, Single, Single, Int32)
Declaration
public static bool SolveFABRIK(NativeArray<Vector3> linkPositions, NativeArray<float> linkLengths, Vector3 target, float tolerance, float maxReach, int maxIterations)
Parameters
| Type |
Name |
Description |
| NativeArray<Vector3> |
linkPositions |
|
| NativeArray<System.Single> |
linkLengths |
|
| Vector3 |
target |
|
| System.Single |
tolerance |
|
| System.Single |
maxReach |
|
| System.Int32 |
maxIterations |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static void SolveTwoBoneIK(AnimationStream stream, TransformHandle root, TransformHandle mid, TransformHandle tip, TransformHandle target, TransformHandle hint, float posWeight, float rotWeight, float hintWeight, Vector2 limbLengths, AffineTransform targetOffset)
Parameters
SqrDistance(Vector3, Vector3)
Declaration
public static float SqrDistance(Vector3 p0, Vector3 p1)
Parameters
| Type |
Name |
Description |
| Vector3 |
p0 |
|
| Vector3 |
p1 |
|
Returns
| Type |
Description |
| System.Single |
|
Sum(AnimationJobCache, CacheIndex, Int32)
Declaration
public static float Sum(AnimationJobCache cache, CacheIndex index, int count)
Parameters
Returns
| Type |
Description |
| System.Single |
|