owashe / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

Gear joint problem. #232

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The gear joint not working when m_bodyA type is static or/and m_bodyB type is 
static in constructor "b2GearJoint::b2GearJoint(const b2GearJointDef* def)".

I am suggesting implementing assertion in constructor b2GearJoint and checking 
whether there is no the attached joints (Gear Joints) while change bodyA type 
to static in "b2Body::SetType(b2BodyType type)".

Original issue reported on code.google.com by XoLaM...@gmail.com on 28 Aug 2011 at 12:34

GoogleCodeExporter commented 8 years ago
This was fixed some time ago. The gear joint works fine if any bodies are 
static.

Original comment by erinca...@gmail.com on 28 Aug 2011 at 10:08