second key and fence
This commit is contained in:
@@ -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)>();
|
||||
|
||||
Reference in New Issue
Block a user