natiny.physics.set_interpolation

Lua
natiny.physics.set_interpolation(body, enabled)

Enables or disables visual interpolation of a body's entity transform between fixed physics ticks.

Parameters

Name Type Description
body number Body handle
enabled boolean true to interpolate the transform; false to use the latest simulated transform

Example

Lua
natiny.physics.set_interpolation(crate, true)