self:set_motion_mode
Client
Sets the motion mode of the character body
Syntax
local status = self:set_motion_mode(
mode
)Parameters
| Type | Name | Description |
|---|---|---|
int | mode | Motion mode enum value — refer to physics.character.motion_mode |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.character.create()
entity:set_motion_mode(physics.character.motion_mode.GROUNDED)