godot/servers/physics_3d
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
..
joints Make Servers truly Thread Safe 2021-02-10 13:21:46 -03:00
area_3d_sw.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
area_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
area_pair_3d_sw.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
area_pair_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
body_3d_sw.cpp Fix some angular velocity calculations 2021-03-20 07:21:37 +10:00
body_3d_sw.h SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
body_pair_3d_sw.cpp Merge pull request #46917 from nekomatata/solver-kinematic-bug-fix 2021-03-20 21:53:01 +01:00
body_pair_3d_sw.h SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
broad_phase_3d_basic.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
broad_phase_3d_basic.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
broad_phase_3d_sw.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
broad_phase_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
broad_phase_octree.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
broad_phase_octree.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
collision_object_3d_sw.cpp Make Servers truly Thread Safe 2021-02-10 13:21:46 -03:00
collision_object_3d_sw.h SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
collision_solver_3d_sat.cpp Merge pull request #46937 from nekomatata/soft-body-support 2021-03-20 21:45:20 +01:00
collision_solver_3d_sat.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
collision_solver_3d_sw.cpp SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
collision_solver_3d_sw.h SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
constraint_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
gjk_epa.cpp Merge pull request #46937 from nekomatata/soft-body-support 2021-03-20 21:45:20 +01:00
gjk_epa.h Fix Cylinder shape collision with margins when using GJK-EPA 2021-03-16 10:19:26 -07:00
joints_3d_sw.h Move removal of the constraints from bodies to Joint3DSW destructor 2021-02-27 20:52:01 +01:00
physics_server_3d_sw.cpp SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
physics_server_3d_sw.h SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
physics_server_3d_wrap_mt.cpp Make Servers truly Thread Safe 2021-02-10 13:21:46 -03:00
physics_server_3d_wrap_mt.h SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
shape_3d_sw.cpp [Godot Physics]: Correct typo in moment of inertia calculations. 2021-03-22 20:10:11 -07:00
shape_3d_sw.h Disable backface collision with ConcavePolygonShape by default 2021-03-18 11:30:22 -07:00
soft_body_3d_sw.cpp SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
soft_body_3d_sw.h SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
space_3d_sw.cpp Merge pull request #47130 from e344fde6bf/fix-angular-velocity-calculation 2021-03-20 21:46:02 +01:00
space_3d_sw.h SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
step_3d_sw.cpp SoftBody support in GodotPhysics 3D 2021-03-18 09:04:17 -07:00
step_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00