enableCollisionBetween.lua 652 B

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