support multiple thrown projectiles

This commit is contained in:
2025-04-08 10:51:46 +02:00
parent bf90ad8caf
commit ae8026588b
7 changed files with 50 additions and 30 deletions

View File

@@ -79,9 +79,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)>();
}
}