| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- return {
- summary = 'Set the Shape\'s orientation.',
- description = 'Set the orientation of the Shape relative to its Collider.',
- arguments = {
- angle = {
- type = 'number',
- description = 'The number of radians the Shape is rotated.'
- },
- ax = {
- type = 'number',
- description = 'The x component of the rotation axis.'
- },
- ay = {
- type = 'number',
- description = 'The y component of the rotation axis.'
- },
- az = {
- type = 'number',
- description = 'The z component of the rotation axis.'
- },
- orientation = {
- type = 'Quat',
- description = 'The orientation of the Shape.'
- }
- },
- returns = {},
- variants = {
- {
- description = 'Set the orientation of the Shape using numbers.',
- arguments = { 'angle', 'ax', 'ay', 'az' },
- returns = {}
- },
- {
- description = 'Set the orientation of the Shape using a quaternion.',
- arguments = { 'orientation' },
- returns = {}
- }
- },
- notes = 'If the Shape isn\'t attached to a Collider, this will error.',
- related = {
- 'Shape:getPosition',
- 'Shape:setPosition'
- }
- }
|