Shape:getPose

Edit

Returns the position and orientation 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, angle, ax, ay, az = Shape:getPose()

Arguments

None

Returns

NameTypeDescription
xnumber The x position of the Shape, in meters.
ynumber The y position of the Shape, in meters.
znumber The z position of the Shape, in meters.
anglenumber The number of radians the Shape is rotated around its axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

See also