Avian Character Controllers, DespawnOnExitState, and SystemParams
2025-05-12
0.16 is out and honestly I'm already seeing features land that make me want 0.17 :D
The Avian Character Control Working Group (discord invite) is an ad-hoc group of people with a shared interest in building kinematic character controllers with Avian. If that sounds like you, move and slide your way over into the dedicated Discord to find links to the prototype GitHub repo.
fn filter_spawned_after(
entities: impl IntoIterator<Item = Entity>,
world: &World,
tick: Tick,
) -> impl Iterator<Item = Entity> {
let now = world.last_change_tick();
entities.into_iter().filter(move |entity| world
.entity(*entity)
.spawned_at()
.is_newer_than(tick, now)
)
}