diff options
| author | Juan Linietsky | 2017-01-10 22:27:32 -0300 |
|---|---|---|
| committer | GitHub | 2017-01-10 22:27:32 -0300 |
| commit | 710692278d1353aad08bc7bceb655afc1d6c950c (patch) | |
| tree | baa41e8373b6a686baa7de4d14d1630b4ab1d3e0 /scene | |
| parent | 6671670e8162bc2dba1382a7b50f1c089ca3df17 (diff) | |
| parent | 2e38b32e0f261445c2d0b095c1822fbe6df16e25 (diff) | |
| download | godot-710692278d1353aad08bc7bceb655afc1d6c950c.tar.gz godot-710692278d1353aad08bc7bceb655afc1d6c950c.tar.zst godot-710692278d1353aad08bc7bceb655afc1d6c950c.zip | |
Merge pull request #7426 from m4nu3lf/bugfix/physics
Fixed inertia tensor computation and center of mass
Diffstat (limited to 'scene')
| -rw-r--r-- | scene/3d/vehicle_body.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/vehicle_body.cpp b/scene/3d/vehicle_body.cpp index 59a4c19da..0d603902e 100644 --- a/scene/3d/vehicle_body.cpp +++ b/scene/3d/vehicle_body.cpp @@ -594,7 +594,7 @@ void VehicleBody::_resolve_single_bilateral(PhysicsDirectBodyState *s, const Vec rel_pos1, rel_pos2, normal, - s->get_inverse_inertia(), + s->get_inverse_inertia_tensor().get_main_diagonal(), 1.0/mass, b2invinertia, b2invmass); |
