enableCollisionBetween.lua 713 B

1234567891011121314151617181920212223242526272829303132
  1. return {
  2. tag = 'worldCollision',
  3. summary = 'Enable collision between two tags.',
  4. description = 'Enables collision between two collision tags.',
  5. arguments = {
  6. tag1 = {
  7. type = 'string',
  8. description = 'The first tag.'
  9. },
  10. tag2 = {
  11. type = 'string',
  12. description = 'The second tag.'
  13. }
  14. },
  15. returns = {},
  16. variants = {
  17. {
  18. arguments = { 'tag1', 'tag2' },
  19. returns = {}
  20. }
  21. },
  22. notes = [[
  23. Tags must be set up when creating the World, see `lovr.physics.newWorld`.
  24. By default, collision is enabled between all tags.
  25. ]],
  26. related = {
  27. 'lovr.physics.newWorld',
  28. 'World:disableCollisionBetween',
  29. 'World:isCollisionEnabledBetween'
  30. }
  31. }