| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- return {
- tag = 'sourceEffects',
- summary = 'Set the orientation of the Source.',
- description = 'Sets the orientation of the Source in angle/axis representation.',
- arguments = {
- angle = {
- type = 'number',
- description = 'The number of radians the Source should be rotated around its rotation axis.'
- },
- ax = {
- type = 'number',
- description = 'The x component of the axis of rotation.'
- },
- ay = {
- type = 'number',
- description = 'The y component of the axis of rotation.'
- },
- az = {
- type = 'number',
- description = 'The z component of the axis of rotation.'
- },
- orientation = {
- type = 'Quat',
- description = 'The orientation.'
- }
- },
- returns = {},
- variants = {
- {
- description = 'Set the orientation using angle/axis numbers.',
- arguments = { 'angle', 'ax', 'ay', 'az' },
- returns = {}
- },
- {
- description = 'Set the orientation using a quaternion.',
- arguments = { 'orientation' },
- returns = {}
- }
- },
- related = {
- 'Source:setPosition',
- 'Source:setPose',
- 'lovr.audio.setOrientation'
- }
- }
|