applyTorque.lua 653 B

1234567891011121314151617181920212223242526272829
  1. return {
  2. summary = 'Apply torque to the Collider.',
  3. description = 'Applies torque to the Collider.',
  4. arguments = {
  5. {
  6. name = 'x',
  7. type = 'number',
  8. description = 'The x component of the torque.'
  9. },
  10. {
  11. name = 'y',
  12. type = 'number',
  13. description = 'The y component of the torque.'
  14. },
  15. {
  16. name = 'z',
  17. type = 'number',
  18. description = 'The z component of the torque.'
  19. }
  20. },
  21. returns = {},
  22. notes = [[
  23. If the Collider is asleep, it will need to be woken up with `Collider:setAwake` for this
  24. function to have any affect.
  25. ]],
  26. related = {
  27. 'Collider:applyForce'
  28. }
  29. }