Class AnimationRuntimeUtils | Animation Rigging | 0.3.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class AnimationRuntimeUtils

    Inheritance
    Object
    AnimationRuntimeUtils
    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, ReadWriteTransformHandle)

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

    ProjectOnPlane(Vector3, Vector3)

    Declaration
    public static Vector3 ProjectOnPlane(Vector3 vector, Vector3 planeNormal)
    Parameters
    Type Name Description
    Vector3 vector
    Vector3 planeNormal
    Returns
    Type Description
    Vector3

    Select(Single, Single, Single)

    Declaration
    public static float Select(float a, float b, float c)
    Parameters
    Type Name Description
    Single a
    Single b
    Single c
    Returns
    Type Description
    Single

    Select(Vector3, Vector3, Vector3)

    Declaration
    public static Vector3 Select(Vector3 a, Vector3 b, Vector3 c)
    Parameters
    Type Name Description
    Vector3 a
    Vector3 b
    Vector3 c
    Returns
    Type Description
    Vector3

    SolveFABRIK(ref NativeArray<Vector3>, ref NativeArray<Single>, Vector3, Single, Single, Int32)

    Declaration
    public static bool SolveFABRIK(ref NativeArray<Vector3> linkPositions, ref NativeArray<float> linkLengths, Vector3 target, float tolerance, float maxReach, int maxIterations)
    Parameters
    Type Name Description
    NativeArray<Vector3> linkPositions
    NativeArray<Single> linkLengths
    Vector3 target
    Single tolerance
    Single maxReach
    Int32 maxIterations
    Returns
    Type Description
    Boolean

    SolveTwoBoneIK(AnimationStream, ReadWriteTransformHandle, ReadWriteTransformHandle, ReadWriteTransformHandle, ReadOnlyTransformHandle, ReadOnlyTransformHandle, Single, Single, Single, AffineTransform)

    Declaration
    public static void SolveTwoBoneIK(AnimationStream stream, ReadWriteTransformHandle root, ReadWriteTransformHandle mid, ReadWriteTransformHandle tip, ReadOnlyTransformHandle target, ReadOnlyTransformHandle hint, float posWeight, float rotWeight, float hintWeight, AffineTransform targetOffset)
    Parameters
    Type Name Description
    AnimationStream stream
    ReadWriteTransformHandle root
    ReadWriteTransformHandle mid
    ReadWriteTransformHandle tip
    ReadOnlyTransformHandle target
    ReadOnlyTransformHandle hint
    Single posWeight
    Single rotWeight
    Single hintWeight
    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
    Single

    Square(Single)

    Declaration
    public static float Square(float value)
    Parameters
    Type Name Description
    Single value
    Returns
    Type Description
    Single

    Sum(NativeArray<Single>)

    Declaration
    public static float Sum(NativeArray<float> floatBuffer)
    Parameters
    Type Name Description
    NativeArray<Single> floatBuffer
    Returns
    Type Description
    Single

    Sum(AnimationJobCache, CacheIndex, Int32)

    Declaration
    public static float Sum(AnimationJobCache cache, CacheIndex index, int count)
    Parameters
    Type Name Description
    AnimationJobCache cache
    CacheIndex index
    Int32 count
    Returns
    Type Description
    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