Add second body anchor point as a parameter to love.physics.newPrismaticJoint, and fix some scaling issues with PrismaticJoint

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-27 15:48:29 -04:00
parent 356b3c880d
commit 5244463109
5 changed files with 31 additions and 16 deletions
+2 -2
View File
@@ -167,9 +167,9 @@ namespace box2d
return new RevoluteJoint(body1, body2, x, y, collideConnected);
}
PrismaticJoint * Physics::newPrismaticJoint(Body * body1, Body * body2, float x, float y, float ax, float ay, bool collideConnected)
PrismaticJoint * Physics::newPrismaticJoint(Body * body1, Body * body2, float xA, float yA, float xB, float yB, float ax, float ay, bool collideConnected)
{
return new PrismaticJoint(body1, body2, x, y, ax, ay, collideConnected);
return new PrismaticJoint(body1, body2, xA, yA, xB, yB, ax, ay, collideConnected);
}
PulleyJoint * Physics::newPulleyJoint(Body * body1, Body * body2, b2Vec2 groundAnchor1, b2Vec2 groundAnchor2, b2Vec2 anchor1, b2Vec2 anchor2, float ratio, bool collideConnected)