‹›
JoltPhysics

Air movement and momentum

Opt-in preservation of the character’s own movement momentum during flight.

GML
player.set_air_movement_enabled(true);
player.set_air_acceleration(10);

Defaults: enabled=false, acceleration=10 m/s². Acceleration must be finite and ≥ 0; zero adds no controlled airborne acceleration. set_air_movement_enabled requires Boolean. Getters return the settings. This does not configure explosion strength or replace external velocity.

Ground and air transitions#

The mode preserves own horizontal movement in flight. Disabling during flight takes effect on landing; it is not an immediate airborne brake. Support movement and external impulses use separate state.

Complete API declarations#

Declarations match the production GML sources. A value after = marks an optional argument. This is a signature inventory; the guide sections describe meaning, units and limitations. The type before a dot identifies the method owner, not a global function.