예제 #1
0
    protected override void Initialise2(IntPtr world)
    {
        ThingPtr = LPAPIJoint.CreateMouseJoint(world, BodyA.GetComponent <LPBody>().GetPtr(), BodyB.GetComponent <LPBody>().GetPtr()
                                               , BodyB.transform.position.x, BodyB.transform.position.y, true);

        LPAPIJoint.SetMouseJointMaxForce(ThingPtr, MaximumForce);
        LPAPIJoint.SetMouseJointDampingRatio(ThingPtr, DampingRatio);
        LPAPIJoint.SetMouseJointFrequency(ThingPtr, Frequency);
    }