second key and fence

This commit is contained in:
2025-03-14 21:57:37 +01:00
parent 87e0529afb
commit 5ba25edbdf
10 changed files with 711 additions and 591 deletions

View File

@@ -57,7 +57,7 @@ fn trigger(
target,
start_time: time.elapsed_secs(),
//TODO: make this configurable
duration: 1.,
duration: 2.,
};
commands.entity(e).insert(platform);
@@ -75,6 +75,7 @@ fn move_active(
let t = (elapsed - active.start_time) / active.duration;
transform.rotation = active.start.rotation.lerp(active.target.rotation, t);
} else {
info!("movable done");
*transform = active.target;
commands.entity(e).remove::<(ActiveMovable, Movable)>();