You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > addStaticShape

19.9.7 addStaticShape

self = physics.Space:addStaticShape(staticShape)

Parameter

Type

Description

self

in physics.Space

The input simulation Space

staticShape

in physics.Shape

Adds the static Shape to the simulation Space

self

out physics.Space

The input Space is returned as the output

Adds a static Shape to the Space. Returns self.

Introduced in platform.apiLevel = '2.0'