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

19.5.2 body

body = physics.Shape:body()

Parameter

Type

Description

self

in physics.Shape

The input Shape

body

out physics.Body

The Body associated with the Shape

Returns the body attached to the shape. If the shape is static, then it will return nil.

Introduced in platform.apiLevel = '2.0'