godot/servers
Josh Jones 9aadd0cde7 [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:10:11 -07:00
..
audio Fix AudioEffectCapture buffer length cannot be changed 2021-03-17 23:07:38 +01:00
camera Check if an input image wasn't Image on several functions in CameraFeed 2021-03-14 16:47:21 +07:00
physics_2d Fix GodotPhysics solver with kinematic body set to report contacts 2021-03-11 18:06:00 -07:00
physics_3d [Godot Physics]: Correct typo in moment of inertia calculations. 2021-03-22 20:10:11 -07:00
rendering Changed SCsub for shaders to find shaders automatically and create dependencies with include files 2021-03-18 12:59:47 +11:00
xr Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
SCsub Renaming all ARVR nodes to XR 2020-04-09 15:33:01 +10:00
audio_server.cpp Reorganize Project Settings 2021-02-18 11:23:34 -03:00
audio_server.h Make audio bus channels' peak volume consistent 2021-02-02 11:30:32 +01:00
camera_server.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
camera_server.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
display_server.cpp doc: Sync classref with current source 2021-02-19 14:39:14 +01:00
display_server.h Move tablet driver API from OS to DisplayServer. 2021-02-18 17:12:24 +02:00
navigation_server_2d.cpp Make 2D navigation consider scale 2021-03-18 15:17:23 +01:00
navigation_server_2d.h Allow Navigation to be more flexible 2021-03-15 15:58:59 +01:00
navigation_server_3d.cpp Allow Navigation to be more flexible 2021-03-15 15:58:59 +01:00
navigation_server_3d.h Allow Navigation to be more flexible 2021-03-15 15:58:59 +01:00
physics_server_2d.cpp Make Servers truly Thread Safe 2021-02-10 13:21:46 -03:00
physics_server_2d.h Make Servers truly Thread Safe 2021-02-10 13:21:46 -03:00
physics_server_3d.cpp SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
physics_server_3d.h SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
register_server_types.cpp Reorganize Project Settings 2021-02-18 11:23:34 -03:00
register_server_types.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
rendering_server.cpp Reorganize Project Settings 2021-02-18 11:23:34 -03:00
rendering_server.h Fix negative VRAM values 2021-03-05 21:48:20 +00:00
server_wrap_mt_common.h Make Servers truly Thread Safe 2021-02-10 13:21:46 -03:00
text_server.cpp Merge pull request #46045 from bruvzg/text_server_bmp_create 2021-02-24 12:55:36 +01:00
text_server.h Merge pull request #46045 from bruvzg/text_server_bmp_create 2021-02-24 12:55:36 +01:00
xr_server.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
xr_server.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00