示例#1
0
        public void initialize(Body bA, Body bB)
        {
            bodyA = bA;
            bodyB = bB;
            Vec2 xB = bodyB.getPosition();
            bodyA.getLocalPointToOut(xB, ref linearOffset);

            float angleA = bodyA.getAngle();
            float angleB = bodyB.getAngle();
            angularOffset = angleB - angleA;
        }