virtualx-engine/modules/bullet
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
..
area_bullet.cpp Remove do{ } while(0) wrapper around error macros 2021-09-12 15:04:53 +08:00
area_bullet.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
btRayShape.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
btRayShape.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
bullet_physics_server.cpp Fix errors in KinematicBody when floor is destroyed or removed 2021-11-15 22:32:53 +01:00
bullet_physics_server.h Fix 3D moving platform logic 2021-08-09 18:55:49 -07:00
bullet_types_converter.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
bullet_types_converter.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
bullet_utilities.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
collision_object_bullet.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
collision_object_bullet.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
cone_twist_joint_bullet.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
cone_twist_joint_bullet.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
config.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
constraint_bullet.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
constraint_bullet.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
generic_6dof_joint_bullet.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
generic_6dof_joint_bullet.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
godot_collision_configuration.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
godot_collision_configuration.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
godot_collision_dispatcher.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
godot_collision_dispatcher.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
godot_motion_state.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
godot_ray_world_algorithm.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
godot_ray_world_algorithm.h Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
godot_result_callbacks.cpp Fix 3D moving platform logic 2021-08-09 18:55:49 -07:00
godot_result_callbacks.h Fix 3D moving platform logic 2021-08-09 18:55:49 -07:00
hinge_joint_bullet.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
hinge_joint_bullet.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
joint_bullet.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
joint_bullet.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
pin_joint_bullet.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
pin_joint_bullet.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_types.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rid_bullet.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rigid_body_bullet.cpp Reload kinematic shapes when changing PhysicsBody mode to Kinematic 2021-09-27 18:10:30 +02:00
rigid_body_bullet.h Fix applied rotation from moving platforms in move_and_slide 2021-08-09 12:04:57 -07:00
SCsub Merge pull request #53183 from m4nu3lf/threadsafe_bullet_3.x 2021-09-29 21:34:56 +02:00
shape_bullet.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
shape_bullet.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
shape_owner_bullet.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
shape_owner_bullet.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
slider_joint_bullet.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
slider_joint_bullet.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
soft_body_bullet.cpp Fix crash when pinned SoftBody point is out of range 2021-10-04 15:47:12 +08:00
soft_body_bullet.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
space_bullet.cpp Reload kinematic shapes when changing PhysicsBody mode to Kinematic 2021-09-27 18:10:30 +02:00
space_bullet.h Fix 3D moving platform logic 2021-08-09 18:55:49 -07:00