Shape:setOrientation

Edit

Set the orientation of the Shape relative to its Collider.



Set the orientation of the Shape using numbers.

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

Set the orientation of the Shape using a quaternion.

Arguments

NameTypeDescription
orientationQuat The orientation of the Shape.

Returns

Nothing

Notes

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

See also