Class ProceduralBoneExclusionSet
The bones one animator has stopped driving — e.g. limb bones handed off to ragdoll physics on death. Any pose offset targeting an excluded bone is stripped from the frame's pose right before it reaches the rig.
Inherited Members
Namespace: Serenity.ProceduralAnimator.Infrastructure.Services
Assembly: Serenity.UnityProceduralAnimator.Infrastructure.dll
Syntax
public sealed class ProceduralBoneExclusionSet
Constructors
ProceduralBoneExclusionSet()
Declaration
public ProceduralBoneExclusionSet()
Methods
Clear()
Resumes driving every bone.
Declaration
public void Clear()
Replace(IEnumerable<string>)
Replaces the excluded set (this is not additive). A null or empty sequence resumes driving every bone, exactly as Clear() does.
Declaration
public void Replace(IEnumerable<string> boneIds)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | boneIds |
StripFrom(PoseDelta)
Removes every excluded bone's position and rotation offset from the pose. No-op, and allocation-free, when nothing is excluded.
Declaration
public void StripFrom(PoseDelta pose)
Parameters
| Type | Name | Description |
|---|---|---|
| PoseDelta | pose |