mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Updated box2d from 2.2.1 to 2.3.0
--HG-- branch : box2d-2.3
This commit is contained in:
@@ -108,7 +108,7 @@ b2PrismaticJoint::b2PrismaticJoint(const b2PrismaticJointDef* def)
|
||||
m_referenceAngle = def->referenceAngle;
|
||||
|
||||
m_impulse.SetZero();
|
||||
m_motorMass = 0.0;
|
||||
m_motorMass = 0.0f;
|
||||
m_motorImpulse = 0.0f;
|
||||
|
||||
m_lowerTranslation = def->lowerTranslation;
|
||||
@@ -349,17 +349,6 @@ void b2PrismaticJoint::SolveVelocityConstraints(const b2SolverData& data)
|
||||
|
||||
vB += mB * P;
|
||||
wB += iB * LB;
|
||||
|
||||
b2Vec2 Cdot10 = Cdot1;
|
||||
|
||||
Cdot1.x = b2Dot(m_perp, vB - vA) + m_s2 * wB - m_s1 * wA;
|
||||
Cdot1.y = wB - wA;
|
||||
|
||||
if (b2Abs(Cdot1.x) > 0.01f || b2Abs(Cdot1.y) > 0.01f)
|
||||
{
|
||||
b2Vec2 test = b2Mul22(m_K, df);
|
||||
Cdot1.x += 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
data.velocities[m_indexA].v = vA;
|
||||
|
||||
Reference in New Issue
Block a user