So I have this:
void OnCollisionEnter(Collision c)
{
var joint = gameObject.AddComponent<FixedJoint>();
joint.connectedBody = c.rigidbody;
}
and its tied to the object I am picking up but I want to be able to delete this joint when I press a key so I can drop the object I picked up with
Destroy (joint);
would I put that in the same class in the Update() method?