Class GltfNode
A node in the node hierarchy.
When the node contains skin
, all mesh.primitives
must contain JOINT
and WEIGHT
attributes. A node can have either a matrix
or any combination
of translation
/rotation
/scale
(TRS) properties.
TRS properties are converted to matrices and postmultiplied in
the T * R * S
order to compose the transformation matrix;
first the scale is applied to the vertices, then the rotation, and then
the translation. If none are provided, the transform is the Identity.
When a node is targeted for animation
(referenced by an animation.channel.target), only TRS properties may be present;
matrix
will not be present.
https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/node.schema.json
Assembly: cs.temp.dll.dll
public class GltfNode : GltfChildOfRootProperty
Fields
The index of the camera referenced by this node.
Declaration
Field Value
The index of the camera referenced by this node.
Declaration
Field Value
The indices of this node's children.
Declaration
Field Value
The indices of this node's children.
Declaration
Field Value
A floating-point 4x4 transformation matrix stored in column-major order.
Declaration
Field Value
A floating-point 4x4 transformation matrix stored in column-major order.
Declaration
Field Value
The index of the mesh in this node.
Declaration
Field Value
The index of the mesh in this node.
Declaration
Field Value
The node's unit quaternion rotation in the order (x, y, z, w),
where w is the scalar.
Declaration
Field Value
The node's unit quaternion rotation in the order (x, y, z, w),
where w is the scalar.
Declaration
Field Value
The node's non-uniform scale.
Declaration
Field Value
The node's non-uniform scale.
Declaration
Field Value
The index of the skin referenced by this node.
Declaration
Field Value
The index of the skin referenced by this node.
Declaration
Field Value
Declaration
public float[] translation
Field Value
Declaration
public float[] translation
Field Value
If true, extracts transform, rotation, scale values from the Matrix4x4. Otherwise uses the Transform, Rotate, Scale directly as specified by the node.
Declaration
Field Value
If true, extracts transform, rotation, scale values from the Matrix4x4. Otherwise uses the Transform, Rotate, Scale directly as specified by the node.
Declaration
Field Value
The weights of the instantiated Morph Target.
Number of elements must match number of Morph Targets of used mesh.
Declaration
Field Value
The weights of the instantiated Morph Target.
Number of elements must match number of Morph Targets of used mesh.
Declaration
Field Value
Properties
Declaration
public Matrix4x4 Matrix { get; set; }
Property Value
Type |
Description |
Matrix4x4 |
|
Declaration
public Matrix4x4 Matrix { get; set; }
Property Value
Type |
Description |
Matrix4x4 |
|