aim_projectile

Function aim_projectile 

Source
pub fn aim_projectile(
    speed: f32,
    pos: Vec3<f32>,
    tgt: Vec3<f32>,
    high_arc: bool,
) -> Option<Dir>
Expand description

Projectile motion: Returns the direction to aim for the projectile to reach target position. Does not take any forces but gravity into account.