godot/servers
Josh Jones 9327052bed [Godot Physics]: Correct typo in moment of inertia calculations.
The moment of inertia calculation for BoxShape is:

```
Vector3(
    (p_mass / 3.0) * (ly * ly + lz * lz), 
    (p_mass / 3.0) * (lx * lx + lz * lz), 
    (p_mass / 3.0) * (lx * lx + ly * ly));
```

where the final line includes both the x and y extents.

However, for CapsuleShape3D, CylinderShape3D, ConvexPolygonShape3D, ConcavePolygonShape3D, and HeightMapShape3D, the final line read `(p_mass / 3.0) * (extents.y * extents.y + extents.y * extents.y)`.  I believe this is a mistake, considering the comment in each case mentions using an AABB approximation, which should follow the same approach as BoxShape.

This change corrects the final line to include both the x and y components of the shape's extent.
2021-03-22 20:23:39 -07:00
..
arvr Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio Fix AudioEffectCapture buffer length cannot be changed 2021-03-19 10:50:18 +01:00
camera Check if an input image wasn't Image on several functions in CameraFeed 2021-03-14 12:03:22 +01:00
physics [Godot Physics]: Correct typo in moment of inertia calculations. 2021-03-22 20:23:39 -07:00
physics_2d Merge pull request #45618 from RandomShaper/modernize_mt_3.2 2021-02-18 20:47:24 +01:00
visual Merge pull request #46932 from JFonS/fix_lm_capture_env 2021-03-12 12:30:36 +01:00
arvr_server.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
arvr_server.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_server.cpp Modernize Mutex 2021-02-18 11:58:08 +01:00
audio_server.h Modernize Mutex 2021-02-18 11:58:08 +01:00
camera_server.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
camera_server.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
physics_2d_server.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
physics_2d_server.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
physics_server.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
physics_server.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_server_types.cpp Backport d800329 AudioEffectCapture to 3.2 2021-02-21 20:14:58 -08:00
register_server_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
server_wrap_mt_common.h Modernize Mutex 2021-02-18 11:58:08 +01:00
visual_server.cpp Merge pull request #46932 from JFonS/fix_lm_capture_env 2021-03-12 12:30:36 +01:00
visual_server.h Merge pull request #46932 from JFonS/fix_lm_capture_env 2021-03-12 12:30:36 +01:00