Shape:getPosition
EditReturns 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
Name | Type | Description |
x | number | The x position, in world space. |
y | number | The y position, in world space. |
z | number | The z position, in world space. |