Destroy(int)
Destroy the joint. If the object is owned with PhysicsJoint.SetOwner then you must provide the owner key it returned. Failing to do so will return a warning and the joint will not be destroyed.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public bool Destroy(int ownerKey = 0)
Parameters
Optional owner key returned when using PhysicsJoint.SetOwner.
Returns
Type | Description |
|---|---|
| bool | If the joint was destroyed or not. |