setOrientation.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. return {
  2. summary = 'Set the orientation of the Collider.',
  3. description = 'Sets the orientation of the Collider in angle/axis representation.',
  4. arguments = {
  5. angle = {
  6. type = 'number',
  7. description = 'The number of radians the Collider is rotated around its axis of rotation.'
  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 Collider.'
  24. }
  25. },
  26. returns = {},
  27. variants = {
  28. {
  29. description = 'Set the orientation of the Collider using numbers.',
  30. arguments = { 'angle', 'ax', 'ay', 'az' },
  31. returns = {}
  32. },
  33. {
  34. description = 'Set the orientation of the Collider using a quaternion.',
  35. arguments = { 'orientation' },
  36. returns = {}
  37. }
  38. },
  39. related = {
  40. 'Collider:applyTorque',
  41. 'Collider:getAngularVelocity',
  42. 'Collider:setAngularVelocity',
  43. 'Collider:getPosition',
  44. 'Collider:setPosition',
  45. 'Collider:getPose',
  46. 'Collider:setPose'
  47. }
  48. }