getLocalCenter.lua 605 B

123456789101112131415161718192021222324252627
  1. return {
  2. summary = 'Get the Collider\'s center of mass.',
  3. description = 'Returns the Collider\'s center of mass.',
  4. arguments = {},
  5. returns = {
  6. {
  7. name = 'cx',
  8. type = 'number',
  9. description = 'The x position of the center of mass.'
  10. },
  11. {
  12. name = 'cy',
  13. type = 'number',
  14. description = 'The y position of the center of mass.'
  15. },
  16. {
  17. name = 'cz',
  18. type = 'number',
  19. description = 'The z position of the center of mass.'
  20. }
  21. },
  22. related = {
  23. 'Collider:getLocalPoint',
  24. 'Collider:getMassData',
  25. 'Collider:setMassData'
  26. }
  27. }