protected override void Initialise2(IntPtr world) { Vector3 anchorA = Vector3.zero; Vector3 anchorB = Vector3.zero; ThingPtr = LPAPIJoint.CreateFrictionJoint(world, BodyA.GetComponent <LPBody>().GetPtr(), BodyB.GetComponent <LPBody>().GetPtr() , anchorA.x, anchorA.y, anchorB.x, anchorB.y, CollideConnected); LPAPIJoint.SetFrictionJointMaxForce(ThingPtr, MaximumForce); LPAPIJoint.SetFrictionJointMaxTorque(ThingPtr, MaximumTorque); }