getWidth.lua 540 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Get the width of the model.',
  3. description = 'Returns the width of the model, computed from its axis-aligned bounding box.',
  4. arguments = {},
  5. returns = {
  6. width = {
  7. type = 'number',
  8. description = 'The width of the model.'
  9. }
  10. },
  11. variants = {
  12. {
  13. arguments = {},
  14. returns = { 'width' }
  15. }
  16. },
  17. related = {
  18. 'ModelData:getHeight',
  19. 'ModelData:getDepth',
  20. 'ModelData:getDimensions',
  21. 'ModelData:getCenter',
  22. 'ModelData:getBoundingBox',
  23. 'Model:getWidth'
  24. }
  25. }