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 intoout. -
isAwake(
int i) → bool -
Whether the
ith body is awake. -
linearVelocityInto(
int i, Vector3 out) → void -
The
ith body's linear velocity, written intoout. -
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 intoout. -
rotationInto(
int i, Quaternion out) → void -
The
ith body's rotation, written intoout. -
set(
int count, List< int> bodies, Float32List data) → void -
Sets
count,bodiesanddata(a backend's own buffers). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited