Skip to main content

move_to_2d

Function move_to_2d 

Source
pub fn move_to_2d(
    name: &str,
    agent_pos_key: &str,
    target_key: &str,
    speed: f32,
    arrival_radius: f32,
) -> BehaviorNode
Expand description

Variant that reads the target from a Vec2 position and moves in 2-D.