godot/servers/physics
Pedro J. Estébanez 3e5e8b6c9e Fix multiple issues with 2D & 3D physics
- Use `NOTIFICATION_ENTER`/`EXIT_WORLD` for `Area` (intead of `*_TREE`).
- Now both bodies' and areas' constraints are cleaned up.
- And now also that happens as soon as the space is set to null (i.e., when exiting the tree) instead of only at freeing time.
- When clearing constraints, the loop goes on to the next if the current is already released, instead of breaking.
- When one has been already released, no error is shown from now on, as it's something expected, since a pair (our kind of constraint of interest) can be freed by any of its involved collision objects and the other will try again.
- Implement index shifting (or marking as -1) for shapes indices in collision pairs shapes are removed.
- Standarize behavior of bodies and areas so that anything that invalidates a given pair gives the same result (collision mask, actual collision, etc); for instance, triggering area enter/exit signals.
- Add missing member initializations.
- Extend the new-space-equals-area/body-current-space test to every case.
- Fix 3D ray-casts early accepting Areas (skipping the mask check).
- Fix unpairing of large elements (2D's `BroadPhase2DHashGrid`).

Some of these prevent random crashes caused by constraints with dangling pointers to involved objects.
Fixes #8856.
Fixes #7589.
Fixes #6676.
And maybe others.
2017-06-19 12:02:50 +02:00
..
joints Improve documentation of thirdparty code snippets 2017-05-26 23:53:14 +02:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-02 22:28:28 +01:00
area_pair_sw.cpp Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
area_pair_sw.h Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
area_sw.cpp Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
area_sw.h Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
body_pair_sw.cpp Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
body_pair_sw.h Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
body_sw.cpp Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
body_sw.h Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
broad_phase_basic.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
broad_phase_basic.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
broad_phase_octree.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
broad_phase_octree.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
broad_phase_sw.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
broad_phase_sw.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
collision_object_sw.cpp Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
collision_object_sw.h Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
collision_solver_sat.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
collision_solver_sat.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
collision_solver_sw.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
collision_solver_sw.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
constraint_sw.h Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
gjk_epa.cpp Improve documentation of thirdparty code snippets 2017-05-26 23:53:14 +02:00
gjk_epa.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
joints_sw.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
physics_server_sw.cpp Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
physics_server_sw.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shape_sw.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shape_sw.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
space_sw.cpp Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
space_sw.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
step_sw.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
step_sw.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00