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