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

19.4.5 applyForce

self = physics.Body:applyForce(forceVect, rOffset)

Parameter

Type

Description

self

in physics.Body

The input Body

forceVect

in physics.Vect

A force vector

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 force vector on self at a relative offset from the center of gravity.

Introduced in platform.apiLevel = '2.0'