virtualx-engine/servers/physics
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
..
joints
area_pair_sw.cpp
area_pair_sw.h
area_sw.cpp
area_sw.h
body_pair_sw.cpp
body_pair_sw.h
body_sw.cpp
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
collision_object_sw.h
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
physics_server_sw.h
SCsub
shape_sw.cpp
shape_sw.h
space_sw.cpp
space_sw.h
step_sw.cpp
step_sw.h