Joint:destroy

Edit

Destroys the Joint, removing it from the World and breaking the connection between its Colliders. There is no way to get the Joint back after destroying it, and attempting to use it will throw an error. To temporarily disable a Joint, use Joint:setEnabled.

Joint:destroy()

Arguments

None

Returns

Nothing

Notes

Joints are automatically destroyed if either of their Colliders are destroyed or if the World is destroyed or garbage collected.

See also