Skip to content

Commit

Permalink
Adjust mouse joint damping with time step (#737)
Browse files Browse the repository at this point in the history
For #713
  • Loading branch information
erincatto authored Dec 25, 2022
1 parent 87c98c6 commit 23c5d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynamics/b2_mouse_joint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void b2MouseJoint::InitVelocityConstraints(const b2SolverData& data)
m_C *= m_beta;

// Cheat with some damping
wB *= 0.98f;
wB *= b2Max(0.0f, 1.0f - 0.02f * (60.0f * data.step.dt));

if (data.step.warmStarting)
{
Expand Down

0 comments on commit 23c5d60

Please sign in to comment.