Pose class final
Every node's translation, rotation and scale: what an animation moves.
Flat arrays indexed by node: three floats per translation and scale, four per rotation (x, y, z, w). In the model's own axes (glTF: +Y up).
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- nodeCount → int
-
How many nodes.
final
- rotations → Float32List
-
x, y, z, w per node.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scales → Float32List
-
x, y, z per node.
final
- translations → Float32List
-
x, y, z per node.
final
Methods
-
blend(
Pose a, Pose b, double t) → void -
This pose blended from
atowardsbbyt(0 =a, 1 =b): translations and scales linearly, rotations along the shorter way. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setFrom(
Pose other) → void -
Copies
other. -
setRest(
ModelData model) → void -
Every node back to
model's rest pose. A node the file gave as a matrix keeps identity values here (it is never animated). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited