Struct TwistCorrectionJob | Animation Rigging | 1.0.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct TwistCorrectionJob

    The TwistCorrection job.

    Namespace: UnityEngine.Animations.Rigging
    Syntax
    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<Single>

    Properties

    jobWeight

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

    Declaration
    public FloatProperty jobWeight { get; set; }
    Property Value
    Type Description
    FloatProperty
    Implements
    IWeightedAnimationJob.jobWeight

    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.

    Implements
    IAnimationJob.ProcessAnimation(AnimationStream)

    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
    IAnimationJob.ProcessRootMotion(AnimationStream)
    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