mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user