godot/servers/physics_2d
PouleyKetchoupp bfd0d33244 Fix errors in CharacterBody 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.
2021-11-10 08:27:33 -07:00
..
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
godot_area_2d.cpp Use `Callable` in Area monitor callback 2021-11-01 21:53:17 -06:00
godot_area_2d.h Use `Callable` in Area monitor callback 2021-11-01 21:53:17 -06:00
godot_area_pair_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_area_pair_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_body_2d.cpp Expose local center of mass in physics servers 2021-11-08 16:17:57 -07:00
godot_body_2d.h Expose local center of mass in physics servers 2021-11-08 16:17:57 -07:00
godot_body_direct_state_2d.cpp Expose local center of mass in physics servers 2021-11-08 16:17:57 -07:00
godot_body_direct_state_2d.h Expose local center of mass in physics servers 2021-11-08 16:17:57 -07:00
godot_body_pair_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_body_pair_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_broad_phase_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_broad_phase_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_broad_phase_2d_bvh.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_broad_phase_2d_bvh.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_object_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_object_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_solver_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_solver_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_solver_2d_sat.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_solver_2d_sat.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_constraint_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_joints_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_joints_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_physics_server_2d.cpp Fix errors in CharacterBody when floor is destroyed or removed 2021-11-10 08:27:33 -07:00
godot_physics_server_2d.h Use `Callable` in Area monitor callback 2021-11-01 21:53:17 -06:00
godot_shape_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_shape_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_space_2d.cpp Use parameter classes instead of arguments for all physics queries 2021-11-04 11:44:39 -07:00
godot_space_2d.h Use parameter classes instead of arguments for all physics queries 2021-11-04 11:44:39 -07:00
godot_step_2d.cpp ThreadWorkPool no longer starts worker threads if given zero work. 2021-11-01 19:19:25 +00:00
godot_step_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00