Skip to content

Commit

Permalink
Fix uninitialized inertia value in Body2DSW
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Doroshenko (Xrayez) committed Aug 23, 2019
1 parent 791d7f7 commit 718f09a
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 718f09a

Please sign in to comment.