Struct MultiAimConstraintData
The MultiAim constraint data.
Inherited Members
Namespace: UnityEngine.Animations.Rigging
Assembly: Unity.Animation.Rigging.dll
Syntax
[Serializable]
public struct MultiAimConstraintData : IAnimationJobData, IMultiAimConstraintData
Properties
aimAxis
Specifies the local aim axis of the constrained Transform to use in order to orient itself to the Source Transforms.
Declaration
public MultiAimConstraintData.Axis aimAxis { get; set; }
Property Value
Type | Description |
---|---|
MultiAimConstraintData.Axis |
constrainedObject
The Transform affected by the constraint Source Transforms.
Declaration
public Transform constrainedObject { get; set; }
Property Value
Type | Description |
---|---|
Transform |
constrainedXAxis
Toggles whether the constrained Transform will rotate along the X axis.
Declaration
public bool constrainedXAxis { get; set; }
Property Value
Type | Description |
---|---|
bool |
constrainedYAxis
Toggles whether the constrained Transform will rotate along the Y axis.
Declaration
public bool constrainedYAxis { get; set; }
Property Value
Type | Description |
---|---|
bool |
constrainedZAxis
Toggles whether the constrained Transform will rotate along the Z axis.
Declaration
public bool constrainedZAxis { get; set; }
Property Value
Type | Description |
---|---|
bool |
limits
Minimum and maximum value of the rotation permitted for the constraint. The values are in degrees.
Declaration
public Vector2 limits { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
maintainOffset
This is used to maintain the current rotation offset from the constrained GameObject to the source GameObjects.
Declaration
public bool maintainOffset { get; set; }
Property Value
Type | Description |
---|---|
bool |
offset
Post-Rotation offset applied to the constrained Transform.
Declaration
public Vector3 offset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
sourceObjects
The list of Transforms that influence the constrained Transform orientation. Each source has a weight from 0 to 1.
Declaration
public WeightedTransformArray sourceObjects { get; set; }
Property Value
Type | Description |
---|---|
WeightedTransformArray |
upAxis
Specified the local up axis of the constrained Transform to use in order to orient itself to the Source Transforms.
Declaration
public MultiAimConstraintData.Axis upAxis { get; set; }
Property Value
Type | Description |
---|---|
MultiAimConstraintData.Axis |
worldUpAxis
Specifies the local aim axis of the constrained Transform to use in order to orient itself to the Source Transforms.
Declaration
public MultiAimConstraintData.Axis worldUpAxis { get; set; }
Property Value
Type | Description |
---|---|
MultiAimConstraintData.Axis |
worldUpObject
The Transform used to calculate the upward direction. This is used when World Up Type is set to WorldUpType.ObjectUp or WorldUpType.ObjectRotationUp.
Declaration
public Transform worldUpObject { get; set; }
Property Value
Type | Description |
---|---|
Transform |
worldUpType
Specifies which mode to use to keep the upward direction of the constrained Object.
Declaration
public MultiAimConstraintData.WorldUpType worldUpType { get; set; }
Property Value
Type | Description |
---|---|
MultiAimConstraintData.WorldUpType |