19.4.35 updateVelocity

physics.Body:updateVelocity(grav, damp, dt)

Parameter

Type

Description

self

in physics.Body

The input Body

grav

in physics.Vect

The force of gravity

damp

in physics.Vect

The damping factor

dt

out physics.Vect

The time interval in seconds

Updates the velocity 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'