godot/modules/bullet
PouleyKetchoupp 622ef48dae Fixed ccd enabled by default on Bullet bodies
It was due to main_shape_changed being called two times for each
added body. The first time it disables ccd, which sets the internal ccd
threshold to be 10000. The second time, it enables ccd again because
the internal threshold is > 0.

Bodies are now consistently set with a ccd threshold of 0 when ccd is
disabled.

This was causing crashing asserts in Bullet when adding bodies in some
scenarios, in btVector3::normalize():
btAssert(!fuzzyZero());

These crashes will still happen with ccd enabled.

(cherry picked from commit faca8b77aa)
2022-03-10 19:02:01 +01:00
..
area_bullet.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
area_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
btRayShape.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
btRayShape.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
bullet_physics_server.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
bullet_physics_server.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
bullet_types_converter.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
bullet_types_converter.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
bullet_utilities.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
collision_object_bullet.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
collision_object_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
cone_twist_joint_bullet.cpp Add nodiscard to core math classes to catch c++ errors. 2022-01-20 17:28:31 +00:00
cone_twist_joint_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
config.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
constraint_bullet.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
constraint_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
generic_6dof_joint_bullet.cpp Add nodiscard to core math classes to catch c++ errors. 2022-01-20 17:28:31 +00:00
generic_6dof_joint_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
godot_collision_configuration.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
godot_collision_configuration.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
godot_collision_dispatcher.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
godot_collision_dispatcher.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
godot_motion_state.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
godot_ray_world_algorithm.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
godot_ray_world_algorithm.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
godot_result_callbacks.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
godot_result_callbacks.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
hinge_joint_bullet.cpp Add nodiscard to core math classes to catch c++ errors. 2022-01-20 17:28:31 +00:00
hinge_joint_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
joint_bullet.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
joint_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
pin_joint_bullet.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
pin_joint_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
register_types.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
register_types.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
rid_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
rigid_body_bullet.cpp Fixed ccd enabled by default on Bullet bodies 2022-03-10 19:02:01 +01:00
rigid_body_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
SCsub Merge pull request #53183 from m4nu3lf/threadsafe_bullet_3.x 2021-09-29 21:34:56 +02:00
shape_bullet.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
shape_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
shape_owner_bullet.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
shape_owner_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
slider_joint_bullet.cpp Add nodiscard to core math classes to catch c++ errors. 2022-01-20 17:28:31 +00:00
slider_joint_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
soft_body_bullet.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
soft_body_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
space_bullet.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
space_bullet.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00