exposed collideConnected flag

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-15 14:28:48 -04:00
parent 99660f39ab
commit e5fa4c87c6
21 changed files with 72 additions and 54 deletions
+2 -1
View File
@@ -30,11 +30,12 @@ namespace physics
{
namespace box2d
{
DistanceJoint::DistanceJoint(Body * body1, Body * body2, float x1, float y1, float x2, float y2)
DistanceJoint::DistanceJoint(Body * body1, Body * body2, float x1, float y1, float x2, float y2, bool collideConnected)
: Joint(body1, body2), joint(NULL)
{
b2DistanceJointDef def;
def.Initialize(body1->body, body2->body, world->scaleDown(b2Vec2(x1,y1)), world->scaleDown(b2Vec2(x2,y2)));
def.collideConnected = collideConnected;
joint = (b2DistanceJoint*)createJoint(&def);
}