Browse Source

World:isCollisionEnabledBetween wildcards;

bjorn 1 year ago
parent
commit
b5547bbd7e
2 changed files with 8 additions and 4 deletions
  1. 4 2
      api/init.lua
  2. 4 2
      api/lovr/physics/World/isCollisionEnabledBetween.lua

+ 4 - 2
api/init.lua

@@ -35511,12 +35511,14 @@ return {
                     {
                       name = "tag1",
                       type = "string",
-                      description = "The first tag."
+                      description = "The first tag, or `nil` to use a wildcard.",
+                      default = "nil"
                     },
                     {
                       name = "tag2",
                       type = "string",
-                      description = "The second tag."
+                      description = "The second tag, or `nil` to use a wildcard.",
+                      default = "nil"
                     }
                   },
                   returns = {

+ 4 - 2
api/lovr/physics/World/isCollisionEnabledBetween.lua

@@ -5,11 +5,13 @@ return {
   arguments = {
     tag1 = {
       type = 'string',
-      description = 'The first tag.'
+      default = 'nil',
+      description = 'The first tag, or `nil` to use a wildcard.'
     },
     tag2 = {
       type = 'string',
-      description = 'The second tag.'
+      default = 'nil',
+      description = 'The second tag, or `nil` to use a wildcard.'
     }
   },
   returns = {