19.4.24 setPos

self = physics.Body:setPos(vector)

Parameter

Type

Description

self

in physics.Body

The input Body

vector

in physics.Vect

The position of the Body

self

out physics.Body

The input Body is returned as the output


Updates the position of the body. Returns the Body.

Returns the Body.

.Introduced in platform.apiLevel = '2.0'