getAABB.lua 939 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. return {
  2. summary = 'Get the Shape\'s axis aligned bounding box.',
  3. description = 'Returns the bounding box for the Shape.',
  4. arguments = {},
  5. returns = {
  6. minx = {
  7. type = 'number',
  8. description = 'The minimum x coordinate of the box.'
  9. },
  10. maxx = {
  11. type = 'number',
  12. description = 'The maximum x coordinate of the box.'
  13. },
  14. miny = {
  15. type = 'number',
  16. description = 'The minimum y coordinate of the box.'
  17. },
  18. maxy = {
  19. type = 'number',
  20. description = 'The maximum y coordinate of the box.'
  21. },
  22. minz = {
  23. type = 'number',
  24. description = 'The minimum z coordinate of the box.'
  25. },
  26. maxz = {
  27. type = 'number',
  28. description = 'The maximum z coordinate of the box.'
  29. }
  30. },
  31. variants = {
  32. {
  33. arguments = {},
  34. returns = { 'minx', 'maxx', 'miny', 'maxy', 'minz', 'maxz' }
  35. }
  36. },
  37. related = {
  38. 'Collider:getAABB'
  39. }
  40. }