godot/core/math
lawnjelly ba5e4d8baa BVH fix stale changed items, causing dangling pairs
In the octree collisions are flushed as objects are moved, whereas in the BVH they are usually flushed once per frame.

This was causing problems in the render tree in some rare situations where objects were being created (perhaps deleted and recreated using the same handle in the same frame). This PR flushes the collisions before creating objects, and set_pairable.

set_pairable may not be necessary but it is done for safety until proven not necessary.

Also a small potential for a bug is closed in remove_unordered use.
2021-01-27 16:14:32 +00:00
..
a_star.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
a_star.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
aabb.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
aabb.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_frame.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_frame.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
basis.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
basis.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
bsp_tree.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
bsp_tree.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
bvh_abb.h doc: Sync classref with current source 2021-01-13 16:55:27 +01:00
bvh_cull.inc BVH render tree new updating scheme 2021-01-19 14:24:32 +00:00
bvh_debug.inc BVH - fix physics expecting plus one based IDs. 2021-01-14 13:26:44 +00:00
bvh_integrity.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_logic.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_misc.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_pair.inc BVH render tree new updating scheme 2021-01-19 14:24:32 +00:00
bvh_public.inc Fix BVH set_pairable and masks. 2021-01-17 15:00:49 +00:00
bvh_refit.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_split.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_structs.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_tree.h doc: Sync classref with current source 2021-01-13 16:55:27 +01:00
bvh.h BVH fix stale changed items, causing dangling pairs 2021-01-27 16:14:32 +00:00
camera_matrix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
camera_matrix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
delaunay.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
disjoint_set.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
disjoint_set.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
expression.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
expression.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
face3.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
face3.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
geometry.cpp CPU lightmapper formatting and minor fixes. 2021-01-14 18:08:33 +01:00
geometry.h Implement new CPU lightmapper 2021-01-14 18:05:56 +01:00
math_defs.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_fieldwise.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_fieldwise.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_funcs.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_funcs.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
octree_definition.inc Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
octree.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
plane.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
plane.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quat.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quat.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quick_hull.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quick_hull.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_number_generator.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_number_generator.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_pcg.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_pcg.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rect2.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rect2.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
transform_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
transform_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
transform.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
transform.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangle_mesh.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangle_mesh.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangulate.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangulate.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector2.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector2.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector3.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector3.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00