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

TypeNameDescription
objectinstanceCreated static body instance

Examples

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

shape:set_shape_box({10, 1, 10})

On this page