Merge pull request #31604 from Xrayez/fix-inertia-2d
Fix uninitialized inertia value in Body2DSW
This commit is contained in:
commit
57589a767d
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue