physics.character.motion_mode

Client

Enumeration of movement modes controlling how a character body interacts with surfaces


Values

ConstantDescription
physics.character.motion_mode.GROUNDEDStandard ground-based movement — the body slides along floors, walls, and ceilings
physics.character.motion_mode.FLOATINGFree movement with no floor/wall/ceiling distinction — useful for flying or swimming characters

Examples

Set a character body to floating motion mode
local entity = physics.character.create()

entity:set_motion_mode(physics.character.motion_mode.FLOATING)

On this page