Class Skeleton
An immutable joint hierarchy shared by skinned meshes and their poses.
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public sealed class Skeleton
Constructors
| Edit this page View SourceSkeleton(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 SourceMaximumJoints
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 SourceJoints
Joints ordered so that every parent precedes its children.
Declaration
public IReadOnlyList<Joint> Joints { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<Joint> |
RestPose
The pose with every joint at its rest rotation.
Declaration
public SkeletonPose RestPose { get; }
Property Value
| Type | Description |
|---|---|
| SkeletonPose |
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 SourceIndexOf(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 |