Struct TwoBoneIKConstraintJob
The TwoBoneIK constraint job.
Namespace: UnityEngine.Animations.Rigging
Syntax
[BurstCompile]
public struct TwoBoneIKConstraintJob : IWeightedAnimationJob, IAnimationJob
Fields
hint
The transform handle for the hint transform.
Declaration
public ReadOnlyTransformHandle hint
Field Value
Type | Description |
---|---|
ReadOnlyTransformHandle |
hintWeight
The weight for which hint transform has an effect on IK calculations. This is a value in between 0 and 1.
Declaration
public FloatProperty hintWeight
Field Value
Type | Description |
---|---|
FloatProperty |
mid
The transform handle for the mid transform.
Declaration
public ReadWriteTransformHandle mid
Field Value
Type | Description |
---|---|
ReadWriteTransformHandle |
root
The transform handle for the root transform.
Declaration
public ReadWriteTransformHandle root
Field Value
Type | Description |
---|---|
ReadWriteTransformHandle |
target
The transform handle for the target transform.
Declaration
public ReadOnlyTransformHandle target
Field Value
Type | Description |
---|---|
ReadOnlyTransformHandle |
targetOffset
The offset applied to the target transform if maintainTargetPositionOffset or maintainTargetRotationOffset is enabled.
Declaration
public AffineTransform targetOffset
Field Value
Type | Description |
---|---|
AffineTransform |
targetPositionWeight
The weight for which target position has an effect on IK calculations. This is a value in between 0 and 1.
Declaration
public FloatProperty targetPositionWeight
Field Value
Type | Description |
---|---|
FloatProperty |
targetRotationWeight
The weight for which target rotation has an effect on IK calculations. This is a value in between 0 and 1.
Declaration
public FloatProperty targetRotationWeight
Field Value
Type | Description |
---|---|
FloatProperty |
tip
The transform handle for the tip transform.
Declaration
public ReadWriteTransformHandle tip
Field Value
Type | Description |
---|---|
ReadWriteTransformHandle |
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. |