Struct TwoBoneIKConstraintData
The TwoBoneIK constraint data.
Inherited Members
Namespace: UnityEngine.Animations.Rigging
Assembly: Unity.Animation.Rigging.dll
Syntax
[Serializable]
public struct TwoBoneIKConstraintData : IAnimationJobData, ITwoBoneIKConstraintData
Properties
hint
The IK hint transform.
Declaration
public Transform hint { get; set; }
Property Value
Type | Description |
---|---|
Transform |
hintWeight
The weight for which hint transform has an effect on IK calculations. This is a value in between 0 and 1.
Declaration
public float hintWeight { get; set; }
Property Value
Type | Description |
---|---|
float |
maintainTargetPositionOffset
This is used to maintain the offset of the tip position to the target position.
Declaration
public bool maintainTargetPositionOffset { get; set; }
Property Value
Type | Description |
---|---|
bool |
maintainTargetRotationOffset
This is used to maintain the offset of the tip rotation to the target rotation.
Declaration
public bool maintainTargetRotationOffset { get; set; }
Property Value
Type | Description |
---|---|
bool |
mid
The mid transform of the two bones hierarchy.
Declaration
public Transform mid { get; set; }
Property Value
Type | Description |
---|---|
Transform |
root
The root transform of the two bones hierarchy.
Declaration
public Transform root { get; set; }
Property Value
Type | Description |
---|---|
Transform |
target
The IK target transform.
Declaration
public Transform target { get; set; }
Property Value
Type | Description |
---|---|
Transform |
targetPositionWeight
The weight for which target position has an effect on IK calculations. This is a value in between 0 and 1.
Declaration
public float targetPositionWeight { get; set; }
Property Value
Type | Description |
---|---|
float |
targetRotationWeight
The weight for which target rotation has an effect on IK calculations. This is a value in between 0 and 1.
Declaration
public float targetRotationWeight { get; set; }
Property Value
Type | Description |
---|---|
float |
tip
The tip transform of the two bones hierarchy.
Declaration
public Transform tip { get; set; }
Property Value
Type | Description |
---|---|
Transform |