godot/servers/physics_3d
PouleyKetchoupp cff7a69aa0 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 19:02:59 -07:00
..
joints Make Servers truly Thread Safe 2021-02-10 13:21:46 -03:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02: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 Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
body_3d_sw.h Use real_t in physics code 2021-01-28 18:15:42 -05:00
body_pair_3d_sw.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
body_pair_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01: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 Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
collision_solver_3d_sat.cpp Revised cylinder contact point generation 2021-02-12 12:25:58 -07:00
collision_solver_3d_sat.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
collision_solver_3d_sw.cpp Cylinder support in Godot Physics 3D 2021-02-10 10:00:53 -07:00
collision_solver_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
constraint_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
gjk_epa.cpp Cylinder support in Godot Physics 3D 2021-02-10 10:00:53 -07:00
gjk_epa.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
joints_3d_sw.h Make Servers truly Thread Safe 2021-02-10 13:21:46 -03:00
physics_server_3d_sw.cpp Cylinder support in Godot Physics 3D 2021-02-10 10:00:53 -07:00
physics_server_3d_sw.h Make Servers truly Thread Safe 2021-02-10 13:21:46 -03: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 Make Servers truly Thread Safe 2021-02-10 13:21:46 -03:00
shape_3d_sw.cpp Cylinder support in Godot Physics 3D 2021-02-10 10:00:53 -07:00
shape_3d_sw.h Cylinder support in Godot Physics 3D 2021-02-10 10:00:53 -07:00
space_3d_sw.cpp Fix test_body_motion recovery 2021-02-17 19:02:59 -07:00
space_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
step_3d_sw.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
step_3d_sw.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00