Class Pose
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
Bone transforms of a skeleton, in parent space with cached model space.
public class PoseInheritance
object ← Pose
Constructors
Pose(Skeleton, PoseType)
Creates a pose for skeleton and sets the initial state.
public Pose(Skeleton skeleton, Pose.PoseType initialState = PoseType.ReferencePose)Parameters
skeleton Skeleton
Properties
NumBones
The number of bones.
public int NumBones { get; }Property Value
int
Skeleton
The skeleton the pose is for.
public Skeleton Skeleton { get; }Property Value
Methods
CalculateModelSpaceTransforms(int)
Calculate model-space transforms for the requested LOD (number of relevant bones).
public void CalculateModelSpaceTransforms(int numRelevantBones)Parameters
numRelevantBones int
CopyParentSpaceTransformsTo(Span<FrameBone>)
Copies the parent space transforms into a destination span.
public void CopyParentSpaceTransformsTo(Span<FrameBone> destination)Parameters
GetModelSpaceTransform(int)
Gets the model space transform of a bone, calculating it if not cached.
public FrameBone GetModelSpaceTransform(int boneIdx)Parameters
boneIdx int
Returns
GetTransform(int)
Gets the parent space transform of a bone.
public FrameBone GetTransform(int boneIdx)Parameters
boneIdx int
Returns
Reset(PoseType, bool)
Resets to the given state, optionally calculating model space transforms.
public void Reset(Pose.PoseType initialState, bool calculateModelSpacePose = false)Parameters
calculateModelSpacePose bool
SetParentSpaceTransforms(ReadOnlySpan<FrameBone>)
Copies parent-space transforms in bulk and invalidates cached model-space transforms.
public void SetParentSpaceTransforms(ReadOnlySpan<FrameBone> transforms)Parameters
transforms ReadOnlySpan<FrameBone>
SetToReferencePose()
Sets every bone to the reference pose.
public void SetToReferencePose()SetToZeroPose()
Sets every bone to the identity additive transform.
public void SetToZeroPose()SetTransform(int, FrameBone)
Sets the parent space transform of a bone.
public void SetTransform(int boneIdx, FrameBone transform)Parameters
boneIdx int
transform FrameBone

