GSAIPath
Extends: Reference
Description
Represents a path made up of Vector3 waypoints, split into segments path follow behaviors can use.
Properties
Type | Name |
---|---|
bool | is_open |
float | length |
Functions
Type | Name |
---|---|
void | func create_path(waypoints: Array) -> void |
float | func calculate_distance(agent_current_position: Vector3) -> float |
Vector3 | func calculate_target_position(target_distance: float) -> Vector3 |
Vector3 | func get_start_point() -> Vector3 |
Vector3 | func get_end_point() -> Vector3 |
Property Descriptions
is_open
If false
, the path loops.
length
Total length of the path.
Method Descriptions
create_path
Creates a path from a list of waypoints.
calculate_distance
Returns the distance from agent_current_position
to the next waypoint.
calculate_target_position
Calculates a target position from the path's starting point based on the target_distance
.
get_start_point
Returns the position of the first point on the path.
get_end_point
Returns the position of the last point on the path.
Last updated