getCenter.lua 829 B

1234567891011121314151617181920212223242526272829303132333435
  1. return {
  2. summary = 'Get the center of the model\'s bounding box.',
  3. description = [[
  4. Returns the center of the model's axis-aligned bounding box, relative to the model's origin.
  5. ]],
  6. arguments = {},
  7. returns = {
  8. x = {
  9. type = 'number',
  10. description = 'The x offset of the center of the bounding box.'
  11. },
  12. y = {
  13. type = 'number',
  14. description = 'The y offset of the center of the bounding box.'
  15. },
  16. z = {
  17. type = 'number',
  18. description = 'The z offset of the center of the bounding box.'
  19. }
  20. },
  21. variants = {
  22. {
  23. arguments = {},
  24. returns = { 'x', 'y', 'z' }
  25. }
  26. },
  27. related = {
  28. 'ModelData:getWidth',
  29. 'ModelData:getHeight',
  30. 'ModelData:getDepth',
  31. 'ModelData:getDimensions',
  32. 'ModelData:getBoundingBox',
  33. 'Model:getCenter'
  34. }
  35. }