From 2bf70f8b1eca48ba40215a4e58aaf6b133d84b18 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 13:39:26 +0400 Subject: fix(player): capture buildings at the communicator floor On the stock Constructor map, walk through the factory basement to the communicator and press Enter. The first objective completes and the same path returns to ground level. The green ceiling no longer hides the floor in the contact query. --- apps/fparkan-game/src/player_collision.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/fparkan-game/src') diff --git a/apps/fparkan-game/src/player_collision.rs b/apps/fparkan-game/src/player_collision.rs index c74a8ec8..c34422da 100644 --- a/apps/fparkan-game/src/player_collision.rs +++ b/apps/fparkan-game/src/player_collision.rs @@ -249,6 +249,10 @@ mod tests { let z = f32::from_bits(hero.position[2]); assert!(z < factory.position[2] - 4.0, "factory cabin at {z}"); assert_eq!(app.terrain.height_at([x, y]).unwrap(), None); + assert_eq!( + fparkan_runtime::capture_building(&mut engine, cockpit).unwrap(), + Some(fparkan_world::OriginalObjectId(0)) + ); } } let [x, y, z] = hero.position.map(f32::from_bits); -- cgit v1.2.3