Developer   API   Game Development   Box2D   PhysicsSprite   setPosition

PhysicsSprite.setPosition

Place body to x, y.

Syntax

setPosition(x, y)

Parameters

x : Float |  - The world position (x) of the body's local origin.

y : Float |  - The world position (y) of the body's local origin.

Returns

Returns type: Undefined

Defined in

PhysicsSprite