readMovedBodies method
The bodies that moved in the last step — awake bodies, and those that
fell asleep since the last read — into out. Static bodies and
characters' bodies are left out.
Implementation
@override
void readMovedBodies(BodyPoses3D out) {
final moved = [
for (final b in bodies.values)
if (b.awake && b.type != BodyType3D.static && b.character == 0)
b.handle,
..._fellAsleep.where(bodies.containsKey),
];
_fellAsleep.clear();
readBodies(moved, out);
}