setOrientation.lua 913 B

123456789101112131415161718192021222324252627282930313233343536
  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. {
  6. name = 'angle',
  7. type = 'number',
  8. description = 'The number of radians the Collider is rotated around its axis of rotation.'
  9. },
  10. {
  11. name = 'ax',
  12. type = 'number',
  13. description = 'The x component of the axis of rotation.'
  14. },
  15. {
  16. name = 'ay',
  17. type = 'number',
  18. description = 'The y component of the axis of rotation.'
  19. },
  20. {
  21. name = 'az',
  22. type = 'number',
  23. description = 'The z component of the axis of rotation.'
  24. }
  25. },
  26. returns = {},
  27. related = {
  28. 'Collider:applyTorque',
  29. 'Collider:getAngularVelocity',
  30. 'Collider:setAngularVelocity',
  31. 'Collider:getPosition',
  32. 'Collider:setPosition',
  33. 'Collider:getPose',
  34. 'Collider:setPose'
  35. }
  36. }