updating the Joints

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-03-13 13:16:02 -04:00
parent be146c5f61
commit b4fae893fd
20 changed files with 50 additions and 205 deletions
+4 -4
View File
@@ -36,8 +36,8 @@ namespace box2d
b2GearJointDef def;
def.joint1 = joint1->joint;
def.joint2 = joint2->joint;
def.body1 = joint1->body2->body;
def.body2 = joint2->body2->body;
def.bodyA = joint1->body2->body;
def.bodyB = joint2->body2->body;
def.ratio = ratio;
joint = (b2GearJoint*)createJoint(&def);
@@ -51,12 +51,12 @@ namespace box2d
void GearJoint::setRatio(float ratio)
{
joint->m_ratio = ratio;
joint->SetRatio(ratio);
}
float GearJoint::getRatio() const
{
return joint->m_ratio;
return joint->GetRatio();
}
} // box2d