readDrawnFlight
readDrawnFlight(
world,ball):DrawnFlight|null
Where the player’s page draws ball, a flight body whose display
names one, this frame: the tick drawn, its rate and its place,
written in place, so read it at once, as a view’s frame callback
does. Null for a ball drawn at the page’s own tick, and on a world
that is no page’s.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
ball |
Entity |
Returns
Section titled “Returns”DrawnFlight | null
Example
Section titled “Example”const drawn = readDrawnFlight(world, ball); if (drawn) shadow.position.set(drawn.position.x, 0, drawn.position.z);