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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
entity |
Entity |
into |
Pick<Transform, "position" | "rotation"> |
Returns
Section titled “Returns”Pick<Transform, "position" | "rotation">
Example
Section titled “Example”readNextPose(world, lift, nextPose).position.y += rise;