physics.character.create

Client

Creates a new character body instance and adds it to the scene


Syntax

local instance = physics.character.create()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
objectinstanceCreated character body instance

Examples

Create a character body instance
local entity = physics.character.create()
local shape = physics.collision_shape.create(entity)

shape:set_shape_capsule(0.4, 1.8)

On this page