19.9.2 addBody

self = physics.Space:addBody(body)

Parameter

Type

Description

self

in physics.Space

The input simulation Space

body

in physics.Body

Adds the Body to the simulation Space

self

out physics.Space

The input Space is returned as the output

Adds a Body to the Space. Returns self.

Introduced in platform.apiLevel = '2.0'