Class AnimationRuntimeUtils | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    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()
    Namespace: UnityEngine.Animations.Rigging
    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
    Type Description
    Vector3

    PassThrough(AnimationStream, TransformHandle)

    Declaration
    public static void PassThrough(AnimationStream stream, TransformHandle handle)
    Parameters
    Type Name Description
    AnimationStream stream
    TransformHandle handle

    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

    SolveTwoBoneIK(AnimationStream, TransformHandle, TransformHandle, TransformHandle, TransformHandle, TransformHandle, Single, Single, Single, Vector2, AffineTransform)

    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
    Type Name Description
    AnimationStream stream
    TransformHandle root
    TransformHandle mid
    TransformHandle tip
    TransformHandle target
    TransformHandle hint
    System.Single posWeight
    System.Single rotWeight
    System.Single hintWeight
    Vector2 limbLengths
    AffineTransform targetOffset

    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
    Type Name Description
    AnimationJobCache cache
    CacheIndex index
    System.Int32 count
    Returns
    Type Description
    System.Single
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023