lovr.physics.newWeldJoint
EditCreates a new WeldJoint.
joint = lovr.physics.newWeldJoint(colliderA, colliderB)
Arguments
Name | Type | Description |
colliderA | Collider |
The first collider to attach the Joint to, or nil to attach the joint to a fixed position in the World.
|
colliderB | Collider | The second collider to attach the Joint to. |
Returns
Name | Type | Description |
joint | WeldJoint | The new WeldJoint. |
Notes
The joint will try to keep the Colliders in the relative pose they were at when the joint was created.