lovr.physics.newWeldJoint

Edit

Creates a new WeldJoint.

joint = lovr.physics.newWeldJoint(colliderA, colliderB)

Arguments

NameTypeDescription
colliderACollider The first collider to attach the Joint to, or nil to attach the joint to a fixed position in the World.
colliderBCollider The second collider to attach the Joint to.

Returns

NameTypeDescription
jointWeldJoint The new WeldJoint.

Notes

The joint will try to keep the Colliders in the relative pose they were at when the joint was created.

See also