godot/modules/bullet
PouleyKetchoupp f29f996199
Fix shape index in multiple physics queries with Bullet
Two main changes:

- Better handling of concave shapes to make sure the queries don't
return a triangle index instead of shape index.
Note: A concave shape within a compound shape will always return a shape
index of 0 because of Bullet limitations.

- Extra check for compound shapes in some queries to avoid undefined
behavior, because the shape index can have an uninitialized value with
convex shapes in some cases.

(cherry picked from commit 02d40de30d)
2021-12-01 23:49:26 +01:00
..
SCsub Merge pull request #53183 from m4nu3lf/threadsafe_bullet_3.x 2021-09-29 21:34:56 +02:00
area_bullet.cpp Add shape data to area overlap data. 2021-11-21 07:18:49 +00:00
area_bullet.h Add shape data to area overlap data. 2021-11-21 07:18:49 +00: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 Give each RigidBody its own DirectBodyState wrapper. 2021-11-20 08:17:04 +00: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 Add shape data to area overlap data. 2021-11-21 07:18:49 +00:00
collision_object_bullet.h Update Bullet Area overlaps when Area properties or shapes change. 2021-11-18 20:31:40 +01: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 shape index in multiple physics queries with Bullet 2021-12-01 23:49:26 +01:00
godot_result_callbacks.h Fix shape index in multiple physics queries with Bullet 2021-12-01 23:49:26 +01: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 Give each RigidBody its own DirectBodyState wrapper. 2021-11-20 08:17:04 +00:00
rigid_body_bullet.h Give each RigidBody its own DirectBodyState wrapper. 2021-11-20 08:17:04 +00: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 SoftBody memory corruption when using invalid mesh 2021-10-20 10:39:16 -07:00
soft_body_bullet.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
space_bullet.cpp Add shape data to area overlap data. 2021-11-21 07:18:49 +00:00
space_bullet.h Fix 3D moving platform logic 2021-08-09 18:55:49 -07:00