virtualx-engine/servers/physics_2d
PouleyKetchoupp 5cbc7149a1 Improve RigidDynamicBody contacts in 2D and 3D
Changed the algorithm for solving contacts to keep previous contacts as
long as they are under the max separation threshold to keep contact
impulses more consistent and contacts more stable.

Also made 2D consistent with 3D and changed some default parameters:
-Contact bias is now 0.8 instead of 0.3 to avoid springy contacts
-Solver iterations are 16 instead of 8 by default for better stability

Performance considerations:
Tested with stress tests that include lots of contacts from overlapping
bodies.
3D: There's no measurable difference in performance.
2D: Performance is a bit lower (close to 10% slower in extreme cases)
The benefit for 2D physics to be much more stable outweighs the slight
decrease in performance, and this could be alleviated by changing the
algorithm to use jacobians for contact solving to help with cache
efficiency and memory allocations.
2021-12-03 10:40:15 -07:00
..
godot_area_2d.cpp Add area to moved list when changing monitorable, 2021-11-20 06:57:34 +00:00
godot_area_2d.h Separate space override modes for gravity/damping in Area 2021-11-09 10:29:24 -07:00
godot_area_pair_2d.cpp Add area to moved list when changing monitorable, 2021-11-20 06:57:34 +00:00
godot_area_pair_2d.h Add area to moved list when changing monitorable, 2021-11-20 06:57:34 +00:00
godot_body_2d.cpp Fix RigidDynamicBody gaining momentum with bounce 2021-11-25 09:51:57 -07:00
godot_body_2d.h Improve RigidDynamicBody contacts in 2D and 3D 2021-12-03 10:40:15 -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 Improve RigidDynamicBody contacts in 2D and 3D 2021-12-03 10:40:15 -07:00
godot_body_pair_2d.h Improve RigidDynamicBody contacts in 2D and 3D 2021-12-03 10:40:15 -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 remove() to remove_at() when removing by index 2021-11-23 18:58:57 -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 Improve RigidDynamicBody contacts in 2D and 3D 2021-12-03 10:40:15 -07:00
godot_physics_server_2d.h Separate space override modes for gravity/damping in Area 2021-11-09 10:29:24 -07: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 Fix rest_info returning no result with high margin and low motion 2021-11-17 11:47:30 -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 Fix physics BVH pairing for teleported or fast moving objects 2021-11-16 14:51:37 -07:00
godot_step_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00