--HG-- branch : box2d-update
@@ -38,7 +38,7 @@ namespace box2d
{
b2FrictionJointDef def;
def.Initialize(body1->body, body2->body, Physics::scaleDown(b2Vec2(xA,yA)));
- def.localAnchorB = Physics::scaleDown(b2Vec2(xB, yB));
+ def.localAnchorB = body2->body->GetLocalPoint(Physics::scaleDown(b2Vec2(xB, yB)));
def.collideConnected = collideConnected;
joint = (b2FrictionJoint*)createJoint(&def);
}
b2WeldJointDef def;
joint = (b2WeldJoint*)createJoint(&def);