natiny_physics_set_interpolation

C
void natiny_physics_set_interpolation(NatinyBody body, bool enabled);

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

Parameters

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

Example

C
natiny_physics_set_interpolation(crate, true);