19.4.34 updatePosition

physics.Body:updatePosition(dt)

Parameter

Type

Description

self

in physics.Body

The input Body

dt

out number

The time interval in seconds

Updates the position of the body using Euler integration

Info

See http://chipmunk-physics.net/release/Chipmunk-5.x/Chipmunk-5.3.4-Docs/ for an explanation of this routine.

Introduced in platform.apiLevel = '2.0'