mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
updating the Joints
--HG-- branch : box2d-update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user