addShape.lua 468 B

123456789101112131415161718192021222324
  1. return {
  2. summary = 'Add a Shape to the Collider.',
  3. description = [[
  4. Attaches a Shape to the collider. Attached shapes will collide with other shapes in the world.
  5. ]],
  6. arguments = {
  7. shape = {
  8. type = 'Shape',
  9. description = 'The Shape to attach.'
  10. }
  11. },
  12. returns = {},
  13. variants = {
  14. {
  15. arguments = { 'shape' },
  16. returns = {}
  17. }
  18. },
  19. related = {
  20. 'Collider:removeShape',
  21. 'Collider:getShapes',
  22. 'Shape'
  23. }
  24. }