fn get_entity_hit_result(
world: &Arc<World>,
from: DVec3,
to: DVec3,
search_box: WorldAabb,
margin: f64,
predicate: impl Fn(&dyn Entity) -> bool,
) -> Option<EntityHitResult>Expand description
Vanilla ProjectileUtil.getEntityHitResult (entity-margin overload): returns
the nearest entity whose inflated box the segment from -> to enters.