Skip to content

Commit

Permalink
Merge pull request #31604 from Xrayez/fix-inertia-2d
Browse files Browse the repository at this point in the history
Fix uninitialized inertia value in Body2DSW
  • Loading branch information
akien-mga authored Aug 24, 2019
2 parents 791d7f7 + 718f09a commit 57589a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions servers/physics_2d/body_2d_sw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ Body2DSW::Body2DSW() :
angular_velocity = 0;
biased_angular_velocity = 0;
mass = 1;
inertia = 0;
user_inertia = false;
_inv_inertia = 0;
_inv_mass = 1;
Expand Down

0 comments on commit 57589a7

Please sign in to comment.