Shape:getOrientation

Edit

Get the orientation of the Shape in world space, taking into 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.

angle, ax, ay, az = Shape:getOrientation()

Arguments

None

Returns

NameTypeDescription
anglenumber The number of radians the Shape is rotated.
axnumber The x component of the rotation axis.
aynumber The y component of the rotation axis.
aznumber The z component of the rotation axis.

See also