Since changing to impulse based joints:
b2PrismaticJoint.cpp
float32 b2PrismaticJoint::GetMotorForce() const
{
return m_motorImpulse;
}
should be
float32 b2PrismaticJoint::GetMotorForce(float32 inv_dt) const
{
return inv_dt*m_motorImpulse;
}
I think.
But more generally, I was wondering what the benefit was of passing inv_dt in is (it's on a lot of joint methods). Isn't there only one valid value, ever, the last world timestep (or substep?).
b2PrismaticJoint.cpp
float32 b2PrismaticJoint::GetMotorForce() const
{
return m_motorImpulse;
}
should be
float32 b2PrismaticJoint::GetMotorForce(float32 inv_dt) const
{
return inv_dt*m_motorImpulse;
}
I think.
But more generally, I was wondering what the benefit was of passing inv_dt in is (it's on a lot of joint methods). Isn't there only one valid value, ever, the last world timestep (or substep?).