godot/servers/physics_2d
PouleyKetchoupp 7344beafdd
Fix errors in KinematicBody when floor is destroyed or removed
In all physics servers, body_get_direct_state() now silently returns
nullptr when the body has been already freed or is removed from space,
so the client code can detect this state and invalidate the body rid.

In 2D, there is no change in behavior (just no more errors).

In 3D, the Bullet server returned a valid direct body state when the
body was removed from the physics space, but in this case it didn't
make sense to use the information from the body state.

(cherry picked from commit b93aeec4a2)
2021-11-15 22:32:53 +01:00
..
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
area_2d_sw.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
area_2d_sw.h Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
area_pair_2d_sw.cpp Fix and clean disabled shapes handling in godot physics servers 2021-06-22 16:48:24 -07:00
area_pair_2d_sw.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
body_2d_sw.cpp Ignore disabled shapes for mass property calculations 2021-06-17 17:17:05 -07:00
body_2d_sw.h Added wakeup() call to velocity, force and impulse functions. 2021-09-28 19:00:10 +13:00
body_pair_2d_sw.cpp Fix GodotPhysics solver with kinematic body set to report contacts 2021-08-04 10:41:58 -07:00
body_pair_2d_sw.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
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 Fix physics BVH broadphase update when changing collision layer/mask 2021-10-21 16:53:41 -07: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 Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
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 Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
collision_solver_2d_sat.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
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 Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
joints_2d_sw.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
joints_2d_sw.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
physics_2d_server_sw.cpp Fix errors in KinematicBody when floor is destroyed or removed 2021-11-15 22:32:53 +01:00
physics_2d_server_sw.h Fixing 2D moving platform logic 2021-07-15 11:57:58 +02:00
physics_2d_server_wrap_mt.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
physics_2d_server_wrap_mt.h Make body_test_motion thread safe for multi-threaded physics 2021-10-06 16:06:03 -07:00
shape_2d_sw.cpp Optimize area detection and intersect_shape queries with concave shapes 2021-05-07 19:19:41 -07:00
shape_2d_sw.h Optimize area detection and intersect_shape queries with concave shapes 2021-05-07 19:19:41 -07:00
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 Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
step_2d_sw.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00