Struct DampedTransformJob
The DampedTransform job.
Inherited Members
Namespace: UnityEngine.Animations.Rigging
Assembly: Unity.Animation.Rigging.dll
Syntax
public struct DampedTransformJob : IWeightedAnimationJob, IAnimationJob
Fields
aimBindAxis
Aim axis used to adjust constrained object rotation if maintainAim is enabled.
Declaration
public Vector3 aimBindAxis
Field Value
| Type | Description |
|---|---|
| Vector3 |
dampPosition
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 FloatProperty dampPosition
Field Value
| Type | Description |
|---|---|
| FloatProperty |
dampRotation
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 FloatProperty dampRotation
Field Value
| Type | Description |
|---|---|
| FloatProperty |
driven
The Transform handle for the constrained object Transform.
Declaration
public ReadWriteTransformHandle driven
Field Value
| Type | Description |
|---|---|
| ReadWriteTransformHandle |
localBindTx
Initial TR offset from source to constrained object.
Declaration
public AffineTransform localBindTx
Field Value
| Type | Description |
|---|---|
| AffineTransform |
prevDrivenTx
Previous frame driven Transform TR components.
Declaration
public AffineTransform prevDrivenTx
Field Value
| Type | Description |
|---|---|
| AffineTransform |
source
The Transform handle for the source object Transform.
Declaration
public ReadOnlyTransformHandle source
Field Value
| Type | Description |
|---|---|
| ReadOnlyTransformHandle |
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 |
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. |
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. |