setMassData.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. return {
  2. summary = 'Set mass properties for the Collider.',
  3. description = 'Sets mass properties for the Collider.',
  4. arguments = {
  5. {
  6. name = 'cx',
  7. type = 'number',
  8. description = 'The x position of the center of mass.'
  9. },
  10. {
  11. name = 'cy',
  12. type = 'number',
  13. description = 'The y position of the center of mass.'
  14. },
  15. {
  16. name = 'cz',
  17. type = 'number',
  18. description = 'The z position of the center of mass.'
  19. },
  20. {
  21. name = 'mass',
  22. type = 'number',
  23. description = 'The computed mass of the Collider.'
  24. },
  25. {
  26. name = 'inertia',
  27. type = 'table',
  28. description = [[
  29. A table containing 6 values of the rotational inertia tensor matrix. The table contains the
  30. 3 diagonal elements of the matrix (upper left to bottom right), followed by the 3 elements
  31. of the upper right portion of the 3x3 matrix.
  32. ]]
  33. }
  34. },
  35. returns = {},
  36. related = {
  37. 'Collider:getMass',
  38. 'Collider:setMass',
  39. 'Shape:getMass'
  40. }
  41. }