Simple3D
Search Results for

    Show / Hide Table of Contents

    Struct Joint

    One joint of a Skeleton: its parent and rest transform relative to that parent.

    Implements
    IEquatable<Joint>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Simple3D.Core
    Assembly: Simple3D.Core.dll
    Syntax
    public readonly record struct Joint : IEquatable<Joint>

    Constructors

    | Edit this page View Source

    Joint(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 Source

    InverseBind

    Transforms mesh coordinates into this joint's space at bind time.

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

    Name

    Joint name, unique within its skeleton.

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

    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
    | Edit this page View Source

    Rotation

    Rest rotation relative to the parent.

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

    Scale

    Rest scale relative to the parent.

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

    Translation

    Rest translation relative to the parent.

    Declaration
    public Vector3 Translation { get; init; }
    Property Value
    Type Description
    Vector3

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX