7032cf0637
Bounce calculation now uses the previous frame's velocity, so it's consistent with the actual motion of the bodies involved and not the yet-to-be-applied forces. When bounce is 1, using the current velocity was causing the new forces (including gravity) to be taken into account, which lead to the bounce velocity to be higher than the falling velocity at the moment of impact, adding more and more energy over time. |
||
---|---|---|
.. | ||
godot_area_2d.cpp | ||
godot_area_2d.h | ||
godot_area_pair_2d.cpp | ||
godot_area_pair_2d.h | ||
godot_body_2d.cpp | ||
godot_body_2d.h | ||
godot_body_direct_state_2d.cpp | ||
godot_body_direct_state_2d.h | ||
godot_body_pair_2d.cpp | ||
godot_body_pair_2d.h | ||
godot_broad_phase_2d.cpp | ||
godot_broad_phase_2d.h | ||
godot_broad_phase_2d_bvh.cpp | ||
godot_broad_phase_2d_bvh.h | ||
godot_collision_object_2d.cpp | ||
godot_collision_object_2d.h | ||
godot_collision_solver_2d.cpp | ||
godot_collision_solver_2d.h | ||
godot_collision_solver_2d_sat.cpp | ||
godot_collision_solver_2d_sat.h | ||
godot_constraint_2d.h | ||
godot_joints_2d.cpp | ||
godot_joints_2d.h | ||
godot_physics_server_2d.cpp | ||
godot_physics_server_2d.h | ||
godot_shape_2d.cpp | ||
godot_shape_2d.h | ||
godot_space_2d.cpp | ||
godot_space_2d.h | ||
godot_step_2d.cpp | ||
godot_step_2d.h | ||
SCsub |