Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readNextPose

readNextPose(world, entity, into): Pick<Transform, "position" | "rotation">

Writes into into where entity stands after the next physics step, as far as this tick has set it: a kinematic body’s next pose, which an earlier system may have set with setNextPose, or its transform. What a mover composes its own move onto, so a bob and a velocity both land.

Parameter Type
world World
entity Entity
into Pick<Transform, "position" | "rotation">

Pick<Transform, "position" | "rotation">

readNextPose(world, lift, nextPose).position.y += rise;