docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TwistCorrectionJob

    The TwistCorrection job.

    Implements
    IWeightedAnimationJob
    IAnimationJob
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Animations.Rigging
    Assembly: Unity.Animation.Rigging.dll
    Syntax
    [BurstCompile]
    public struct TwistCorrectionJob : IWeightedAnimationJob, IAnimationJob

    Fields

    axisMask

    The local twist axis

    Declaration
    public Vector3 axisMask
    Field Value
    Type Description
    Vector3

    source

    The Transform handle for the source object Transform.

    Declaration
    public ReadOnlyTransformHandle source
    Field Value
    Type Description
    ReadOnlyTransformHandle

    sourceInverseBindRotation

    Cached inverse local rotation for source Transform.

    Declaration
    public Quaternion sourceInverseBindRotation
    Field Value
    Type Description
    Quaternion

    twistBindRotations

    List of cached local rotation for twist nodes.

    Declaration
    public NativeArray<Quaternion> twistBindRotations
    Field Value
    Type Description
    NativeArray<Quaternion>

    twistTransforms

    List of Transform handles for the twist nodes.

    Declaration
    public NativeArray<ReadWriteTransformHandle> twistTransforms
    Field Value
    Type Description
    NativeArray<ReadWriteTransformHandle>

    twistWeights

    List of weights for the twist nodes.

    Declaration
    public NativeArray<PropertyStreamHandle> twistWeights
    Field Value
    Type Description
    NativeArray<PropertyStreamHandle>

    weightBuffer

    Buffer used to store weights during job execution.

    Declaration
    public NativeArray<float> weightBuffer
    Field Value
    Type Description
    NativeArray<float>

    Properties

    jobWeight

    The main weight given to the constraint. This is a value in between 0 and 1.

    Declaration
    public FloatProperty jobWeight { readonly get; set; }
    Property Value
    Type Description
    FloatProperty

    Methods

    ProcessAnimation(AnimationStream)

    Defines what to do when processing the animation.

    Declaration
    public void ProcessAnimation(AnimationStream stream)
    Parameters
    Type Name Description
    AnimationStream stream

    The animation stream to work on.

    ProcessRootMotion(AnimationStream)

    Defines what to do when processing the root motion.

    Declaration
    public void ProcessRootMotion(AnimationStream stream)
    Parameters
    Type Name Description
    AnimationStream stream

    The animation stream to work on.

    Implements

    IWeightedAnimationJob
    IAnimationJob
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)