godot/scene
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
..
2d RayCast2D: fix detached arrow tip 2017-05-26 23:54:34 +02:00
3d Fix multiple issues with 2D & 3D physics 2017-06-19 12:02:50 +02:00
animation Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
audio Fix priority in sample players 2017-05-15 20:24:38 +02:00
gui Merge pull request #8952 from GodotExplorer/pr-fix-richtextlabel-warp-CJK 2017-05-27 11:34:31 +02:00
io Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
main Fix bug in pause mode propagation 2017-05-12 20:01:53 +02:00
resources GDScript bindings for various missing Mesh functions. 2017-05-27 00:42:59 +02:00
register_scene_types.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
register_scene_types.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
scene_string_names.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
scene_string_names.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
SCsub Move other lone thirdparty files to thirdparty/misc 2017-05-26 23:39:47 +02:00