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

19.4.15 pos

p = physics.Body:pos()

Parameter

Type

Description

self

in physics.Body

The input Body

p

out physics.Vect

The position of the Body


Returns the vector position of the body.

Introduced in platform.apiLevel = '2.0'