Updated to Box2D 2.2, added new joints, some other updates to match the API changes (still plenty more to go though)

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-03 15:39:32 -04:00
parent b3434997bf
commit 915e3e9d86
126 changed files with 8581 additions and 3772 deletions
+13
View File
@@ -72,6 +72,14 @@ namespace box2d
return JOINT_MOUSE;
case e_gearJoint:
return JOINT_GEAR;
case e_frictionJoint:
return JOINT_FRICTION;
case e_weldJoint:
return JOINT_WELD;
case e_wheelJoint:
return JOINT_WHEEL;
case e_ropeJoint:
return JOINT_ROPE;
default:
return JOINT_INVALID;
}
@@ -116,6 +124,11 @@ namespace box2d
{
return joint->IsActive();
}
bool Joint::getCollideConnected() const
{
return joint->GetCollideConnected();
}
} // box2d
} // physics