setOrientation.lua 970 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. return {
  2. summary = 'Set the orientation of the layer.',
  3. description = 'Sets the orientation of the layer.',
  4. arguments = {
  5. angle = {
  6. type = 'number',
  7. description = 'The amount of rotation around the axis of rotation, in radians.'
  8. },
  9. ax = {
  10. type = 'number',
  11. description = 'The x component of the axis of rotation.'
  12. },
  13. ay = {
  14. type = 'number',
  15. description = 'The y component of the axis of rotation.'
  16. },
  17. az = {
  18. type = 'number',
  19. description = 'The z component of the axis of rotation.'
  20. },
  21. orientation = {
  22. type = 'Quat',
  23. description = 'The orientation of the layer.'
  24. }
  25. },
  26. returns = {},
  27. variants = {
  28. {
  29. arguments = { 'angle', 'ax', 'ay', 'az' },
  30. returns = {}
  31. },
  32. {
  33. arguments = { 'orientation' },
  34. returns = {}
  35. }
  36. },
  37. related = {
  38. 'Layer:getPosition',
  39. 'Layer:setPosition',
  40. 'Layer:getPose',
  41. 'Layer:setPose'
  42. }
  43. }