Skeleton class final

A model's node tree flattened parents first, for turning a Pose into node matrices and those into the joint palettes of its skins.

Constructors

Skeleton(ModelData model)
The skeleton of model.

Properties

hashCode → int
The hash code for this object.
no setterinherited
model → ModelData
The model.
final
nodeCount → int
How many nodes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

boundsInto(int skin, Float32List nodeMatrices, Aabb3 out) → void
Bounds, in model space, of everything skin skin can draw in the pose of nodeMatrices: its joints' positions, grown by the furthest any vertex sits from its joint.
evaluate(Pose pose, Float32List out) → void
Model-space matrices of every node in pose, column-major, 16 floats each, into out (nodeCount * 16 long). A node the file gave as a matrix uses that matrix.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
palette(int skin, Float32List nodeMatrices, Float32List out, [int offset = 0]) → void
The palette of skin skin for nodeMatrices (from evaluate): per joint, the top three rows of jointMatrix · inverseBind (kPaletteFloats floats), into out from offset.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited