Struct DampedTransformData
The DampedTransform constraint data.
Inherited Members
Namespace: UnityEngine.Animations.Rigging
Assembly: Unity.Animation.Rigging.dll
Syntax
[Serializable]
public struct DampedTransformData : IAnimationJobData, IDampedTransformData
Properties
constrainedObject
The Transform affected by the constraint Source Transform.
Declaration
public Transform constrainedObject { get; set; }
Property Value
| Type | Description |
|---|---|
| Transform |
dampPosition
Damp position weight. Defines how much of constrained object position follows source object position. Constrained position will closely follow source object when set to 0, and will not move when set to 1.
Declaration
public float dampPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
dampRotation
Damp rotation weight. Defines how much of constrained object rotation follows source object rotation. Constrained rotation will closely follow source object when set to 0, and will not move when set to 1.
Declaration
public float dampRotation { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
maintainAim
Toggles whether damping will enforces aim.
Declaration
public bool maintainAim { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
sourceObject
The source Transform.
Declaration
public Transform sourceObject { get; set; }
Property Value
| Type | Description |
|---|---|
| Transform |