Simple3D
Search Results for

    Show / Hide Table of Contents

    Class SkeletonPose

    An immutable pose: one local rotation per joint plus an offset added to the root joints' rest translation.

    Inheritance
    object
    SkeletonPose
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    Type Description
    Vector3
    | Edit this page View Source

    Rotations

    Local joint rotations, relative to each parent.

    Declaration
    public IReadOnlyList<Quaternion> Rotations { get; }
    Property Value
    Type Description
    IReadOnlyList<Quaternion>
    | Edit this page View Source

    Skeleton

    The posed skeleton.

    Declaration
    public Skeleton Skeleton { get; }
    Property Value
    Type Description
    Skeleton
    | Edit this page View Source

    WorldTransforms

    Joint transforms in the skinned mesh's coordinate system, including RootTransform.

    Declaration
    public IReadOnlyList<Matrix4x4> WorldTransforms { get; }
    Property Value
    Type Description
    IReadOnlyList<Matrix4x4>

    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
    Type Name Description
    SkeletonPose from
    SkeletonPose to
    float amount
    Returns
    Type Description
    SkeletonPose
    | 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
    Type Name Description
    Skeleton skeleton
    ReadOnlySpan<Quaternion> rotations
    Vector3 rootOffset
    Returns
    Type Description
    SkeletonPose
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX