Browse Source

First collider in a joint can be nil;

bjorn 1 year ago
parent
commit
7757bd52d7

+ 10 - 10
api/init.lua

@@ -32645,7 +32645,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",
@@ -32681,7 +32681,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",
@@ -32855,7 +32855,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",
@@ -32906,7 +32906,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",
@@ -32953,7 +32953,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",
@@ -33004,7 +33004,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",
@@ -33108,7 +33108,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",
@@ -33144,7 +33144,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",
@@ -33331,7 +33331,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",
@@ -33367,7 +33367,7 @@ return {
                 {
                 {
                   name = "colliderA",
                   name = "colliderA",
                   type = "Collider",
                   type = "Collider",
-                  description = "The first collider to attach the Joint to."
+                  description = "The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position in the World."
                 },
                 },
                 {
                 {
                   name = "colliderB",
                   name = "colliderB",

+ 4 - 1
api/lovr/physics/newBallJoint.lua

@@ -5,7 +5,10 @@ return {
   arguments = {
   arguments = {
     colliderA = {
     colliderA = {
       type = 'Collider',
       type = 'Collider',
-      description = 'The first collider to attach the Joint to.'
+      description = [[
+        The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position
+        in the World.
+      ]]
     },
     },
     colliderB = {
     colliderB = {
       type = 'Collider',
       type = 'Collider',

+ 4 - 1
api/lovr/physics/newDistanceJoint.lua

@@ -5,7 +5,10 @@ return {
   arguments = {
   arguments = {
     colliderA = {
     colliderA = {
       type = 'Collider',
       type = 'Collider',
-      description = 'The first collider to attach the Joint to.'
+      description = [[
+        The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position
+        in the World.
+      ]]
     },
     },
     colliderB = {
     colliderB = {
       type = 'Collider',
       type = 'Collider',

+ 4 - 1
api/lovr/physics/newHingeJoint.lua

@@ -5,7 +5,10 @@ return {
   arguments = {
   arguments = {
     colliderA = {
     colliderA = {
       type = 'Collider',
       type = 'Collider',
-      description = 'The first collider to attach the Joint to.'
+      description = [[
+        The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position
+        in the World.
+      ]]
     },
     },
     colliderB = {
     colliderB = {
       type = 'Collider',
       type = 'Collider',

+ 4 - 1
api/lovr/physics/newSliderJoint.lua

@@ -5,7 +5,10 @@ return {
   arguments = {
   arguments = {
     colliderA = {
     colliderA = {
       type = 'Collider',
       type = 'Collider',
-      description = 'The first collider to attach the Joint to.'
+      description = [[
+        The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position
+        in the World.
+      ]]
     },
     },
     colliderB = {
     colliderB = {
       type = 'Collider',
       type = 'Collider',

+ 4 - 1
api/lovr/physics/newWeldJoint.lua

@@ -5,7 +5,10 @@ return {
   arguments = {
   arguments = {
     colliderA = {
     colliderA = {
       type = 'Collider',
       type = 'Collider',
-      description = 'The first collider to attach the Joint to.'
+      description = [[
+        The first collider to attach the Joint to, or `nil` to attach the joint to a fixed position
+        in the World.
+      ]]
     },
     },
     colliderB = {
     colliderB = {
       type = 'Collider',
       type = 'Collider',