getBoundingSphere.lua 914 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. return {
  2. summary = 'Get the bounding sphere of the Model.',
  3. description = 'Returns a sphere approximately enclosing the vertices in the Model.',
  4. arguments = {},
  5. returns = {
  6. x = {
  7. type = 'number',
  8. description = 'The x coordinate of the position of the sphere.'
  9. },
  10. y = {
  11. type = 'number',
  12. description = 'The y coordinate of the position of the sphere.'
  13. },
  14. z = {
  15. type = 'number',
  16. description = 'The z coordinate of the position of the sphere.'
  17. },
  18. radius = {
  19. type = 'number',
  20. description = 'The radius of the bounding sphere.'
  21. }
  22. },
  23. variants = {
  24. {
  25. arguments = {},
  26. returns = { 'x', 'y', 'z', 'radius' }
  27. }
  28. },
  29. related = {
  30. 'Model:getWidth',
  31. 'Model:getHeight',
  32. 'Model:getDepth',
  33. 'Model:getDimensions',
  34. 'Model:getCenter',
  35. 'Model:getBoundingBox',
  36. 'ModelData:getBoundingSphere'
  37. }
  38. }