Class SkeletonPose
An immutable pose: one local rotation per joint plus an offset added to the root joints' rest translation.
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public sealed class SkeletonPose
Properties
|
Edit this page
View Source
RootOffset
Offset added to the translation of root joints.
Declaration
public Vector3 RootOffset { get; }
Property Value
|
Edit this page
View Source
Rotations
Local joint rotations, relative to each parent.
Declaration
public IReadOnlyList<Quaternion> Rotations { get; }
Property Value
|
Edit this page
View Source
Skeleton
Declaration
public Skeleton Skeleton { get; }
Property Value
|
Edit this page
View Source
Joint transforms in the skinned mesh's coordinate system, including RootTransform.
Declaration
public IReadOnlyList<Matrix4x4> WorldTransforms { get; }
Property Value
Methods
|
Edit this page
View Source
Blend(SkeletonPose, SkeletonPose, float)
Blends two poses of the same skeleton: each joint rotation is spherically interpolated and the root offset
linearly, so amount 0 gives from and 1 gives to. Use it to
crossfade animations or to ease toward a tracked pose.
Declaration
public static SkeletonPose Blend(SkeletonPose from, SkeletonPose to, float amount)
Parameters
Returns
|
Edit this page
View Source
Create(Skeleton, ReadOnlySpan<Quaternion>, Vector3)
Creates a pose from one local rotation per joint. Rotations are copied and normalized.
Declaration
public static SkeletonPose Create(Skeleton skeleton, ReadOnlySpan<Quaternion> rotations, Vector3 rootOffset = default)
Parameters
Returns