setPose.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. return {
  2. summary = 'Set the pose of the Collider.',
  3. description = 'Sets the position and orientation of the Collider.',
  4. arguments = {
  5. x = {
  6. type = 'number',
  7. description = 'The x position of the Collider, in meters.'
  8. },
  9. y = {
  10. type = 'number',
  11. description = 'The y position of the Collider, in meters.'
  12. },
  13. z = {
  14. type = 'number',
  15. description = 'The z position of the Collider, in meters.'
  16. },
  17. angle = {
  18. type = 'number',
  19. description = 'The number of radians the Collider is rotated around its axis of rotation.'
  20. },
  21. ax = {
  22. type = 'number',
  23. description = 'The x component of the axis of rotation.'
  24. },
  25. ay = {
  26. type = 'number',
  27. description = 'The y component of the axis of rotation.'
  28. },
  29. az = {
  30. type = 'number',
  31. description = 'The z component of the axis of rotation.'
  32. },
  33. position = {
  34. type = 'Vec3',
  35. description = 'The position of the Collider, in meters.'
  36. },
  37. orientation = {
  38. type = 'Quat',
  39. description = 'The orientation of the Collider.'
  40. }
  41. },
  42. returns = {},
  43. variants = {
  44. {
  45. description = 'Set the pose of the Collider using numbers.',
  46. arguments = { 'x', 'y', 'z', 'angle', 'ax', 'ay', 'az' },
  47. returns = {}
  48. },
  49. {
  50. description = 'Set the pose of the Collider using vector types.',
  51. arguments = { 'position', 'orientation' },
  52. returns = {}
  53. }
  54. },
  55. related = {
  56. 'Collider:setPosition',
  57. 'Collider:setOrientation'
  58. }
  59. }