‹›
JoltPhysics

Character ground friction

Opt-in traction and sliding based on the supporting body friction.

GML
player.set_ground_friction_enabled(true);

Default false preserves the original movement. The setter accepts Boolean and returns Boolean success. get_ground_friction_enabled() reads the setting. This uses actual support friction; it does not change friction on all world bodies.

Behaviour and limitations#

Applied while valid support contact exists. On slopes it affects traction and tangential gravity. Airborne movement uses the corresponding movement mode. Behaviour depends on CharacterVirtual contact/support state; this is not a separate rigid Character or shoe simulation.

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.