19.9.30 step

self = physics.Space:step(dt)

Parameter

Type

Description

self

in physics.Space

The input simulation Space

dt

in number

The length of time (seconds) of one step of the simulation

self

out physics.Space

The input Space is returned as the output

Updates the Space for the given time step dt. A xed time step is recommended and increases the eciency of the contact persistence, requiring an order of magnitude fewer iterations and lower CPU usage.

Returns self.

Introduced in platform.apiLevel = '2.0'