getDimensions.lua 775 B

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