Forráskód Böngészése

Fix uninitialized inertia value in Body2DSW

Andrii Doroshenko (Xrayez) 6 éve
szülő
commit
718f09ad20
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      servers/physics_2d/body_2d_sw.cpp

+ 1 - 0
servers/physics_2d/body_2d_sw.cpp

@@ -671,6 +671,7 @@ Body2DSW::Body2DSW() :
 	angular_velocity = 0;
 	angular_velocity = 0;
 	biased_angular_velocity = 0;
 	biased_angular_velocity = 0;
 	mass = 1;
 	mass = 1;
+	inertia = 0;
 	user_inertia = false;
 	user_inertia = false;
 	_inv_inertia = 0;
 	_inv_inertia = 0;
 	_inv_mass = 1;
 	_inv_mass = 1;