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

TypeNameDescription
intmodeCurrent motion mode enum value — refer to physics.character.motion_mode

Examples

Get the motion mode of a character body
local entity = physics.character.create()

core.engine.print("info", "Character body motion mode:", entity:get_motion_mode())

On this page