[][src]Function rustbatch::entities::predict::predict

pub fn predict<S: Shooter, T: Entity>(shooter: &S, target: &T) -> Option<Vect>

predict returns None if its not possible to hit the target, otherwise you ll get the exact point of future collision if you fire at the exact moment and targets velocity does not change while the bullet is traveling to it