Skip to content

Commit

Permalink
Merge pull request #41584 from TwistedTwigleg/Godot_Physics_2D_Regres…
Browse files Browse the repository at this point in the history
…sion_Fix

Godot master 2D Physics Regression fix
  • Loading branch information
akien-mga authored Aug 29, 2020
2 parents 5abb53b + 0205eef commit edac127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/physics_2d/body_pair_2d_sw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ void BodyPair2DSW::solve(real_t p_step) {

Vector2 jb = c.normal * (c.acc_bias_impulse - jbnOld);

A->apply_bias_impulse(c.rA, -jb);
B->apply_bias_impulse(c.rB, jb);
A->apply_bias_impulse(-jb, c.rA);
B->apply_bias_impulse(jb, c.rB);

real_t jn = -(c.bounce + vn) * c.mass_normal;
real_t jnOld = c.acc_normal_impulse;
Expand Down

0 comments on commit edac127

Please sign in to comment.