Shape:setOrientation

Set the orientation of the Shape relative to its Collider.

Shape:setOrientation(angle, ax, ay, az)

Arguments

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.

Returns

Nothing

Notes

If the Shape isn't attached to a Collider, this will error.

See also