Simple3D
Search Results for

    Show / Hide Table of Contents

    Class Skeleton

    An immutable joint hierarchy shared by skinned meshes and their poses.

    Inheritance
    object
    Skeleton
    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 Skeleton

    Constructors

    | Edit this page View Source

    Skeleton(IEnumerable<Joint>, Matrix4x4?)

    Copies and validates joints: unique names, parents before children, finite transforms and positive scales.

    Declaration
    public Skeleton(IEnumerable<Joint> joints, Matrix4x4? rootTransform = null)
    Parameters
    Type Name Description
    IEnumerable<Joint> joints
    Matrix4x4? rootTransform

    Fields

    | Edit this page View Source

    MaximumJoints

    Maximum number of joints; native renderers upload one matrix per joint each frame.

    Declaration
    public const int MaximumJoints = 128
    Field Value
    Type Description
    int

    Properties

    | Edit this page View Source

    Joints

    Joints ordered so that every parent precedes its children.

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

    RestPose

    The pose with every joint at its rest rotation.

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

    RootTransform

    Transform applied above the root joints, for example from nodes that are not joints.

    Declaration
    public Matrix4x4 RootTransform { get; }
    Property Value
    Type Description
    Matrix4x4

    Methods

    | Edit this page View Source

    IndexOf(string)

    Returns the index of a named joint, or -1.

    Declaration
    public int IndexOf(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    int
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX