mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
exposed collideConnected flag
--HG-- branch : box2d-update
This commit is contained in:
@@ -30,7 +30,7 @@ namespace physics
|
||||
{
|
||||
namespace box2d
|
||||
{
|
||||
GearJoint::GearJoint(Joint * joint1, Joint * joint2, float ratio)
|
||||
GearJoint::GearJoint(Joint * joint1, Joint * joint2, float ratio, bool collideConnected)
|
||||
: Joint(joint1->body2, joint2->body2), joint(NULL)
|
||||
{
|
||||
b2GearJointDef def;
|
||||
@@ -39,6 +39,7 @@ namespace box2d
|
||||
def.bodyA = joint1->body2->body;
|
||||
def.bodyB = joint2->body2->body;
|
||||
def.ratio = ratio;
|
||||
def.collideConnected = collideConnected;
|
||||
|
||||
joint = (b2GearJoint*)createJoint(&def);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user