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

19.4.6 applyImpulse

self = physics.Body:applyImpulse(impulseVect, rOffset)

Parameter

Type

Description

self

in physics.Body

The input Body

impulseVect

in physics.Vect

Impulse force on the Body

rOset

in physics.Vect

Vector offset of the force relative to the Body

self

out physics.Body

The input Body is returned as the output

Apply the impulse vector on self at a relative offset from the center of gravity.

Introduced in platform.apiLevel = '2.0'