fix(physics): restore the one-way shooter exit
Use the recovered rail rebound coefficient and let a launched ball cross object 22 in the exit direction after the upper curve. Strengthen the launch regression so a momentary lane crossing cannot hide a later rebound. Test Plan: - cargo fmt --check - cargo test - cargo clippy --all-targets --all-features -- -D warnings - verify the charged launch trajectory at detail levels 1 through 5
This commit is contained in:
@@ -12,7 +12,10 @@
|
||||
use crate::geometry::Segment;
|
||||
use macroquad::prelude::Vec2;
|
||||
|
||||
const WALL_BOUNCE: f32 = 0.82;
|
||||
// The ordinary rail registrations in `FUN_1000_34ab` use the recovered 0.1
|
||||
// rebound coefficient. The previous 0.82 value made the shooter curve behave
|
||||
// like a rubber bumper and sent the ball back down the launch lane.
|
||||
const WALL_BOUNCE: f32 = 0.10;
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct TableSegment {
|
||||
|
||||
Reference in New Issue
Block a user