mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
use dt instead of inv_dt in RevoluteJoint::getMotorTorque
This commit is contained in:
@@ -101,8 +101,9 @@ float RevoluteJoint::getMotorSpeed() const
|
||||
return joint->GetMotorSpeed();
|
||||
}
|
||||
|
||||
float RevoluteJoint::getMotorTorque(float inv_dt) const
|
||||
float RevoluteJoint::getMotorTorque(float dt) const
|
||||
{
|
||||
float inv_dt = 1.0f / dt;
|
||||
return Physics::scaleUp(Physics::scaleUp(joint->GetMotorTorque(inv_dt)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user