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

19.9.16 removeBody

self = physics.Space:removeBody(body)

Parameter

Type

Description

self

in physics.Space

The input simulation Space

body

in physics.Body

A Body to remove from the simulation Space

self

out physics.Space

The input Space is returned as the output

Removes a Body from the Space. Returns self..

Introduced in platform.apiLevel = '2.0'