self:get_motion_mode
Client
Retrieves the motion mode of the character body
Syntax
local mode = self:get_motion_mode()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
int | mode | Current motion mode enum value — refer to physics.character.motion_mode |
Examples
local entity = physics.character.create()
core.engine.print("info", "Character body motion mode:", entity:get_motion_mode())