BodyPoses3D class final

Bodies' poses after a step, packed stride floats each: position (3), rotation quaternion x y z w (4), linear velocity (3), angular velocity (3), awake (1 or 0).

A world owns one and refills it on every read; its contents are good until the world's next read, into any buffer (a backend may hand out views of its own memory). They stay readable after the world is gone.

Constructors

BodyPoses3D()
An empty buffer.

Properties

bodies ↔ List<int>
The bodies, count of them.
getter/setter pair
count ↔ int
How many bodies were written.
getter/setter pair
data ↔ Float32List
count × stride floats.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

angularVelocityInto(int i, Vector3 out) → void
The ith body's angular velocity, written into out.
isAwake(int i) → bool
Whether the ith body is awake.
linearVelocityInto(int i, Vector3 out) → void
The ith body's linear velocity, written into out.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
positionInto(int i, Vector3 out) → void
The ith body's position, written into out.
rotationInto(int i, Quaternion out) → void
The ith body's rotation, written into out.
set(int count, List<int> bodies, Float32List data) → void
Sets count, bodies and data (a backend's own buffers).
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

stride → const int
Floats per body.