godot/servers/physics_2d
lawnjelly 07e5022cce
BVH - add option for expanded AABBs in leaves
This PR adds a define BVH_EXPAND_LEAF_AABBS which is set, which stores expanded AABBs in the tree instead of exact AABBs.

This makes the logic less error prone when considering reciprocal collisions in the pairing, as all collision detect is now taking place between expanded AABB against expanded AABB, rather than expanded AABB against exact AABB.

The flip side of this is that the intersection tests will now be less exact when expanded margins are set.

All margins are now user customizable via project settings, and take account of collision pairing density to adjust the margin dynamically.

(cherry picked from commit 211dc8cd2d)
2021-11-25 23:13:14 +01:00
..
area_2d_sw.cpp
area_2d_sw.h
area_pair_2d_sw.cpp
area_pair_2d_sw.h
body_2d_sw.cpp
body_2d_sw.h
body_pair_2d_sw.cpp
body_pair_2d_sw.h
broad_phase_2d_basic.cpp Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07:00
broad_phase_2d_basic.h Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07:00
broad_phase_2d_bvh.cpp BVH - add option for expanded AABBs in leaves 2021-11-25 23:13:14 +01:00
broad_phase_2d_bvh.h Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07:00
broad_phase_2d_hash_grid.cpp clang-format: Various fixes to comments alignment from clang-format 13 2021-10-28 14:50:32 +02:00
broad_phase_2d_hash_grid.h Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07:00
broad_phase_2d_sw.cpp
broad_phase_2d_sw.h Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07:00
collision_object_2d_sw.cpp Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07:00
collision_object_2d_sw.h Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07:00
collision_solver_2d_sat.cpp
collision_solver_2d_sat.h
collision_solver_2d_sw.cpp Fix Rayshape recovery in test_body_ray_separation 2021-10-05 18:24:30 -07:00
collision_solver_2d_sw.h Fix Rayshape recovery in test_body_ray_separation 2021-10-05 18:24:30 -07:00
constraint_2d_sw.h
joints_2d_sw.cpp
joints_2d_sw.h
physics_2d_server_sw.cpp BVH - add option for expanded AABBs in leaves 2021-11-25 23:13:14 +01:00
physics_2d_server_sw.h
physics_2d_server_wrap_mt.cpp
physics_2d_server_wrap_mt.h Make body_test_motion thread safe for multi-threaded physics 2021-10-06 16:06:03 -07:00
SCsub
shape_2d_sw.cpp
shape_2d_sw.h
space_2d_sw.cpp Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07:00
space_2d_sw.h Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07:00
step_2d_sw.cpp Fix physics BVH pairing for teleported or fast moving objects 2021-11-16 21:23:39 +01:00
step_2d_sw.h