Interface IRigApplier<TRigDefinition>
Interface for applying pose deltas to a rig. Engine-agnostic: concrete implementations handle the actual transform manipulation.
Namespace: Serenity.ProceduralExpression.Application.Interfaces
Assembly: Serenity.ProceduralExpression.Application.dll
Syntax
public interface IRigApplier<TRigDefinition>
Type Parameters
| Name | Description |
|---|---|
| TRigDefinition | The type of rig definition used by the implementation. |
Methods
Apply(TRigDefinition, PoseDelta)
Applies a pose delta to the rig. Position offsets are additive: transform.localPosition = basePosition + offset Rotation offsets use quaternion multiplication: transform.localRotation = baseRotation * offset
Declaration
void Apply(TRigDefinition rig, PoseDelta pose)
Parameters
| Type | Name | Description |
|---|---|---|
| TRigDefinition | rig | The rig definition to apply to. |
| PoseDelta | pose | The pose delta to apply. |
CacheBasePose(TRigDefinition)
Caches the base pose of the rig for later restoration. Must be called before any pose deltas are applied.
Declaration
void CacheBasePose(TRigDefinition rig)
Parameters
| Type | Name | Description |
|---|---|---|
| TRigDefinition | rig | The rig definition to cache. |
ResetToBasePose(TRigDefinition)
Resets the rig to its cached base pose. Must be called at the start of each frame before applying new pose deltas.
Declaration
void ResetToBasePose(TRigDefinition rig)
Parameters
| Type | Name | Description |
|---|---|---|
| TRigDefinition | rig | The rig definition to reset. |