Skip to main content

spawn_walker

Function spawn_walker 

Source
pub fn spawn_walker(world: &mut World, position: Vec3) -> Entity
Expand description

Spawns an agent that walks the baked navmesh at three units per second, adjustable with set_walk_speed. Returns the agent entity, whose position tracks it as it moves and which renders as a capsule. Parent your own mesh to it with set_parent for a custom look.