AStar

Inherits: Reference < Object

Category: Core

Brief Description

Member Functions

void _compute_cost ( int from_id, int to_id ) virtual
void _estimate_cost ( int from_id, int to_id ) virtual
void add_point ( int id, Vector3 pos, float weight_scale=1 )
bool are_points_connected ( int id, int to_id ) const
void clear ( )
void connect_points ( int id, int to_id, bool bidirectional=true )
void disconnect_points ( int id, int to_id )
int get_available_point_id ( ) const
int get_closest_point ( Vector3 to_pos ) const
Vector3 get_closest_pos_in_segment ( Vector3 to_pos ) const
IntArray get_id_path ( int from_id, int to_id )
Vector3Array get_point_path ( int from_id, int to_id )
Vector3 get_point_pos ( int id ) const
float get_point_weight_scale ( int id ) const
bool has_point ( int id ) const
void remove_point ( int id )

Member Function Description

  • void _compute_cost ( int from_id, int to_id ) virtual
  • void _estimate_cost ( int from_id, int to_id ) virtual

Add a new point at the given position. The weight_scale has to be 1 or larger.

  • bool are_points_connected ( int id, int to_id ) const
  • void clear ( )
  • void connect_points ( int id, int to_id, bool bidirectional=true )
  • void disconnect_points ( int id, int to_id )
  • int get_available_point_id ( ) const
  • IntArray get_id_path ( int from_id, int to_id )
  • Vector3Array get_point_path ( int from_id, int to_id )
  • float get_point_weight_scale ( int id ) const
  • void remove_point ( int id )