getMass.lua 503 B

123456789101112131415161718192021222324
  1. return {
  2. summary = 'Get the total mass of the Collider.',
  3. description = [[
  4. Returns the total mass of the Collider. The mass of a Collider depends on its attached shapes.
  5. ]],
  6. arguments = {},
  7. returns = {
  8. mass = {
  9. type = 'number',
  10. description = 'The mass of the Collider, in kilograms.'
  11. }
  12. },
  13. variants = {
  14. {
  15. arguments = {},
  16. returns = { 'mass' }
  17. }
  18. },
  19. related = {
  20. 'Collider:getMassData',
  21. 'Collider:setMassData',
  22. 'Shape:getMass'
  23. }
  24. }