Struct Joint
One joint of a Skeleton: its parent and rest transform relative to that parent.
Implements
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public readonly record struct Joint : IEquatable<Joint>
Constructors
| Edit this page View SourceJoint(string, int, Vector3, Quaternion, Vector3, Matrix4x4)
One joint of a Skeleton: its parent and rest transform relative to that parent.
Declaration
public Joint(string Name, int Parent, Vector3 Translation, Quaternion Rotation, Vector3 Scale, Matrix4x4 InverseBind)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Name | Joint name, unique within its skeleton. |
| int | Parent | Index of the parent joint, or -1 for a root. Parents precede their children. |
| Vector3 | Translation | Rest translation relative to the parent. |
| Quaternion | Rotation | Rest rotation relative to the parent. |
| Vector3 | Scale | Rest scale relative to the parent. |
| Matrix4x4 | InverseBind | Transforms mesh coordinates into this joint's space at bind time. |
Properties
| Edit this page View SourceInverseBind
Transforms mesh coordinates into this joint's space at bind time.
Declaration
public Matrix4x4 InverseBind { get; init; }
Property Value
| Type | Description |
|---|---|
| Matrix4x4 |
Name
Joint name, unique within its skeleton.
Declaration
public string Name { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Parent
Index of the parent joint, or -1 for a root. Parents precede their children.
Declaration
public int Parent { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Rotation
Rest rotation relative to the parent.
Declaration
public Quaternion Rotation { get; init; }
Property Value
| Type | Description |
|---|---|
| Quaternion |
Scale
Rest scale relative to the parent.
Declaration
public Vector3 Scale { get; init; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
Translation
Rest translation relative to the parent.
Declaration
public Vector3 Translation { get; init; }
Property Value
| Type | Description |
|---|---|
| Vector3 |