Shape:getPosition

Edit

Returns the position of the Shape in world space, taking into the account the position and orientation of the Collider it's attached to, if any. Shapes that aren't attached to a Collider will return their local offset.

x, y, z = Shape:getPosition()

Arguments

None

Returns

NameTypeDescription
xnumber The x position, in world space.
ynumber The y position, in world space.
znumber The z position, in world space.

See also