godot/servers/physics
PouleyKetchoupp beeebb4c2f More accurate unsafe motion calculation
* Safe and unsafe motion are calculated by dichotomy with a limited
number of steps. It's good for performance, but on long motions that
either collide near the beginning or near the end, the result can be
very imprecise.
* Now a factor 0.25 or 0.75 is used to converge faster when this case
happens, which allows longer motions to get more accurate collision
detection.
* Makes snap collision more precise, and helps with cases where diagonal collision on the border of a platform can lead to the character being stuck.

Additional improvements to move_and_slide:
* Handle slide canceling in move_and_collide with 0 velocity instead of
not applying it.
* Better handling of snap with custom logic to cancel sliding.
* Remove small jittering when using stop on slope, by canceling the
motion completely when the resulting motion is less than margin instead
of always projecting to the up direction (in both body motion and snap).

Co-authored-by: fabriceci <fabricecipolla@gmail.com>
2021-07-19 08:09:17 -07:00
..
joints Style: Cleanup uses of double spaces between words 2021-06-07 12:06:59 +02:00
SCsub
area_pair_sw.cpp Fix and clean disabled shapes handling in godot physics servers 2021-06-22 16:48:24 -07:00
area_pair_sw.h
area_sw.cpp
area_sw.h
body_pair_sw.cpp Fix and clean disabled shapes handling in godot physics servers 2021-06-22 16:48:24 -07:00
body_pair_sw.h
body_sw.cpp Ignore disabled shapes for mass property calculations 2021-06-17 17:17:05 -07:00
body_sw.h
broad_phase_basic.cpp
broad_phase_basic.h
broad_phase_bvh.cpp
broad_phase_bvh.h
broad_phase_octree.cpp
broad_phase_octree.h
broad_phase_sw.cpp
broad_phase_sw.h
collision_object_sw.cpp Fix and clean disabled shapes handling in godot physics servers 2021-06-22 16:48:24 -07:00
collision_object_sw.h Fix and clean disabled shapes handling in godot physics servers 2021-06-22 16:48:24 -07:00
collision_solver_sat.cpp
collision_solver_sat.h
collision_solver_sw.cpp
collision_solver_sw.h
constraint_sw.h
gjk_epa.cpp
gjk_epa.h
joints_sw.h
physics_server_sw.cpp Add a method to set the number of physics solver iterations in 3D 2021-07-10 16:29:41 +02:00
physics_server_sw.h Add a method to set the number of physics solver iterations in 3D 2021-07-10 16:29:41 +02:00
shape_sw.cpp Replace QuickHull with Bullet's convex hull computer. 2021-05-22 08:16:43 +02:00
shape_sw.h
space_sw.cpp More accurate unsafe motion calculation 2021-07-19 08:09:17 -07:00
space_sw.h
step_sw.cpp
step_sw.h