Function veloren_rtsim::rule::npc_ai::goto_2d_flying

source ยท
fn goto_2d_flying<S: State>(
    wpos2d: Vec2<f32>,
    speed_factor: f32,
    goal_dist: f32,
    step_dist: f32,
    waypoint_dist: f32,
    height_offset: f32,
) -> impl Action<S>
Expand description

Try to fly toward a 2D position following the terrain altitude at an offset without caring for obstacles.