godot/servers
PouleyKetchoupp 9cefab24e0 Fix test_body_motion recovery
This change makes test_body_motion more reliable when the kinematic body
recovers from being stuck.

- When recovery occurs, the rest information is generated, in order to
make sure collision results from test_move, move_and_collide and
move_and_slide are consistent and return a collision in case of overlap.

- The new calculation for recovery vector makes sure the recovery is
never more than the overlap depth between shapes.
This can help with cases where the kinematic body overlaps with several
shapes.
Recovery is made iteratively, without forcing a full overlap at each
step. This helps with getting proper rest information when recovery
occurs.

- One Way Collision:
When attempting motion, contact direction is checked against motion
before skipping in order to solve cases where kinematic bodies can sink
into one-way collision shapes.
Rest info now sets max contact depth in order to properly handle one-way
collision.

- Low speed motion is now handled in the rest info, by never setting
min_allowed_depth lower than motion length.
Separation is always applied with full margin, otherwise contact is lost
when low speed motion occurs right after higher speed motion.

- Similar changes are applied to 3D in order to make 2D and 3D
consistent.
2021-02-17 18:27:38 -07:00
..
arvr Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
camera Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
physics Fix test_body_motion recovery 2021-02-17 18:27:38 -07:00
physics_2d Fix test_body_motion recovery 2021-02-17 18:27:38 -07:00
visual BVH - fix deferred visible mesh collision check 2021-02-14 09:03:26 +00: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 Make audio bus channels' peak volume consistent 2021-02-05 09:26:09 +01:00
audio_server.h Make audio bus channels' peak volume consistent 2021-02-05 09:26:09 +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 Update copyright statements to 2021 2021-01-13 16:17:06 +01: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 Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
visual_server.cpp Add anisotropic filtering to GLES2 backend 2021-02-02 01:40:58 -06:00
visual_server.h Implement new CPU lightmapper 2021-01-14 18:05:56 +01:00