getLocalCenter.lua 654 B

123456789101112131415161718192021222324252627282930
  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. cx = {
  7. type = 'number',
  8. description = 'The x position of the center of mass.'
  9. },
  10. cy = {
  11. type = 'number',
  12. description = 'The y position of the center of mass.'
  13. },
  14. cz = {
  15. type = 'number',
  16. description = 'The z position of the center of mass.'
  17. }
  18. },
  19. variants = {
  20. {
  21. arguments = {},
  22. returns = { 'cx', 'cy', 'cz' }
  23. }
  24. },
  25. related = {
  26. 'Collider:getLocalPoint',
  27. 'Collider:getMassData',
  28. 'Collider:setMassData'
  29. }
  30. }