unreal.NavLocalGridManager

class unreal.NavLocalGridManager(outer=None, name='None')

Bases: unreal.Object

Manager for local navigation grids

Builds non overlapping grid from multiple sources, that can be used later for pathfinding. Check also: UGridPathFollowingComponent, FNavLocalGridData

C++ Source:

  • Module: AIModule

  • File: NavLocalGridManager.h

classmethod add_local_navigation_grid_for_box(world_context_object, location, extent=[1.000000, 1.000000, 1.000000], rotation=[0.000000, 0.000000, 0.000000], radius2d=5, height=100.000000, rebuild_grids=True) int32

Add Local Navigation Grid for Box

Parameters
Return type

int32

classmethod add_local_navigation_grid_for_capsule(world_context_object, location, capsule_radius, capsule_half_height, radius2d=5, height=100.000000, rebuild_grids=True) int32

Add Local Navigation Grid for Capsule

Parameters
  • world_context_object (Object) –

  • location (Vector) –

  • capsule_radius (float) –

  • capsule_half_height (float) –

  • radius2d (int32) –

  • height (float) –

  • rebuild_grids (bool) –

Return type

int32

classmethod add_local_navigation_grid_for_point(world_context_object, location, radius2d=5, height=100.000000, rebuild_grids=True) int32

creates new grid data for single point

Parameters
  • world_context_object (Object) –

  • location (Vector) –

  • radius2d (int32) –

  • height (float) –

  • rebuild_grids (bool) –

Return type

int32

classmethod add_local_navigation_grid_for_points(world_context_object, locations, radius2d=5, height=100.000000, rebuild_grids=True) int32

creates single grid data for set of points

Parameters
  • world_context_object (Object) –

  • locations (Array(Vector)) –

  • radius2d (int32) –

  • height (float) –

  • rebuild_grids (bool) –

Return type

int32

classmethod find_local_navigation_grid_path(world_context_object, start, end) Array(Vector) or None

Find Local Navigation Grid Path

Parameters
Returns

path_points (Array(Vector)):

Return type

Array(Vector) or None

classmethod remove_local_navigation_grid(world_context_object, grid_id, rebuild_grids=True) None

Remove Local Navigation Grid

Parameters
  • world_context_object (Object) –

  • grid_id (int32) –

  • rebuild_grids (bool) –

classmethod set_local_navigation_grid_density(world_context_object, cell_size) bool

Set Local Navigation Grid Density

Parameters
  • world_context_object (Object) –

  • cell_size (float) –

Return type

bool