applyTorque.lua 783 B

12345678910111213141516171819202122232425262728293031323334353637
  1. return {
  2. summary = 'Apply torque to the Collider.',
  3. description = 'Applies torque to the Collider.',
  4. arguments = {
  5. x = {
  6. type = 'number',
  7. description = 'The x component of the torque.'
  8. },
  9. y = {
  10. type = 'number',
  11. description = 'The y component of the torque.'
  12. },
  13. z = {
  14. type = 'number',
  15. description = 'The z component of the torque.'
  16. },
  17. torque = {
  18. type = 'Vec3',
  19. description = 'The torque to apply.'
  20. }
  21. },
  22. returns = {},
  23. variants = {
  24. {
  25. arguments = { 'x', 'y', 'z' },
  26. returns = {}
  27. },
  28. {
  29. arguments = { 'torque' },
  30. returns = {}
  31. }
  32. },
  33. notes = 'If the Collider is asleep, calling this function will wake it up.',
  34. related = {
  35. 'Collider:applyForce'
  36. }
  37. }