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
| Type | Name | Description |
|---|---|---|
object | instance | Created character body instance |
Examples
local entity = physics.character.create()
local shape = physics.collision_shape.create(entity)
shape:set_shape_capsule(0.4, 1.8)