Struct TwistCorrectionJob
The TwistCorrection job.
Namespace: UnityEngine.Animations.Rigging
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<Single> |
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 |
Implements
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
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. |