physics.animatable.create
Client
Creates a new animatable body instance and adds it to the scene
Syntax
local instance = physics.animatable.create()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
object | instance | Created animatable body instance |
Examples
local entity = physics.animatable.create()
local shape = physics.collision_shape.create(entity)
shape:set_shape_box({4, 1, 8})
entity:set_sync_to_physics(true)