Skip to main content

Functions

Prediction

post_state

Returns the predicted local state after the last command:

simulate

Simulate ticks movement ticks. Available only inside createmove. The optional callback fn(tick, input) lets you modify each tick’s input before it runs. Returns a table of per-tick results with origin, velocity, flags, on_ground.

Example