I wanna create a new FixedJoint in a OnMouseDown between the mouse and the body but I can’t figure out how to correctly create a new joint in code. Is there a factory for these or something?
In C# it is simply gameObject.AddComponent (typeof (FixedJoint));
.
You need the joint to set certain parameters:
FixedJoint fixedJoint = gameObject.GetComponent <FixedJoint> ();
.
Alright, thanks