Function veloren_server_agent::util::aim_projectile

source ยท
pub fn aim_projectile(speed: f32, pos: Vec3<f32>, tgt: Vec3<f32>) -> 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.