2020-02-07 16:43:31 +01:00
[
{
2020-02-11 20:41:34 +01:00
"name" : "GSAISteeringBehavior" ,
"path" : "res://src/GSAISteeringBehavior.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAISteeringBehavior" ,
"description" : " Base class for all steering behaviors.\n\n Steering behaviors calculate the linear and the angular acceleration to be\n to the agent that owns them.\n\n The `calculate_steering` function is the entry point for all behaviors.\n Individual steering behaviors encapsulate the steering logic.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
2020-02-11 20:41:34 +01:00
{
"name" : "is_enabled" ,
"data_type" : "bool" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var is_enabled: bool" ,
"description" : " If `false`, all calculations return zero amounts of acceleration.\n"
} ,
{
"name" : "agent" ,
"data_type" : "GSAISteeringAgent" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var agent: GSAISteeringAgent" ,
"description" : " The AI agent on which the steering behavior bases its calculations.\n"
}
2020-02-07 16:43:31 +01:00
] ,
"signals" : [
] ,
"methods" : [
2020-02-11 20:41:34 +01:00
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _init(_agent: GSAISteeringAgent) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "_agent" ,
"type" : "GSAISteeringAgent"
}
]
} ,
{
"name" : "calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
"description" : " Sets the `acceleration` with the behavior's desired amount of acceleration.\n" ,
"arguments" : [
{
"name" : "acceleration" ,
"type" : "GSAITargetAcceleration"
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
"type" : "GSAITargetAcceleration"
}
]
}
2020-02-07 16:43:31 +01:00
] ,
"static_functions" : [
2020-02-11 20:41:34 +01:00
]
} ,
{
"name" : "GSAIRadiusProximity" ,
"path" : "res://src/Proximities/GSAIRadiusProximity.gd" ,
"extends_class" : [
"GSAIProximity"
] ,
"extends_file" : "" ,
"icon" : "" ,
"signature" : "class GSAIRadiusProximity" ,
"description" : " Determines any agent that is in the specified list as being neighbors with the owner agent if\n they lie within the specified radius.\n" ,
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
2020-02-07 16:43:31 +01:00
{
2020-02-11 20:41:34 +01:00
"name" : "radius" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var radius: float" ,
"description" : " The radius around the owning agent to find neighbors in\n"
} ,
{
"name" : "_last_frame" ,
"data_type" : "int" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _last_frame: int" ,
"description" : ""
} ,
{
"name" : "_scene_tree" ,
"data_type" : "SceneTree" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _scene_tree: SceneTree" ,
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, agents: Array, _radius: float) -> null" ,
"description" : "" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "agent" ,
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "agents" ,
"type" : "Array"
} ,
{
"name" : "_radius" ,
2020-02-07 16:43:31 +01:00
"type" : "float"
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_find_neighbors" ,
"return_type" : "int" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _find_neighbors(callback: FuncRef) -> int" ,
"description" : " Returns a number of neighbors based on a `callback` function.\n\n `_find_neighbors` calls `callback` for each agent in the `agents` array that lie within\n the radius around the owning agent and adds one to the count if its `callback` returns true.\n tags: virtual\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "callback" ,
"type" : "FuncRef"
2020-02-07 16:43:31 +01:00
}
]
2020-02-11 20:41:34 +01:00
}
] ,
"static_functions" : [
]
} ,
{
"name" : "GSAIProximity" ,
"path" : "res://src/Proximities/GSAIProximity.gd" ,
"extends_class" : [
"Reference"
] ,
"extends_file" : "" ,
"icon" : "" ,
"signature" : "class GSAIProximity" ,
"description" : " Base container type that stores data to find the neighbors of an agent.\n" ,
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
"name" : "agent" ,
"data_type" : "GSAISteeringAgent" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var agent: GSAISteeringAgent" ,
"description" : " The owning agent whose neighbors are found in the group\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "agents" ,
"data_type" : "Array" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var agents: Array" ,
"description" : " The agents who are part of this group and could be potential neighbors\n"
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(_agent: GSAISteeringAgent, _agents: Array) -> null" ,
"description" : "" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_agent" ,
"type" : "GSAISteeringAgent"
} ,
{
"name" : "_agents" ,
"type" : "Array"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_find_neighbors" ,
"return_type" : "int" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _find_neighbors(_callback: FuncRef) -> int" ,
"description" : " Returns a number of neighbors based on a `callback` function.\n\n `_find_neighbors` calls `callback` for each agent in the `agents` array and\n adds one to the count if its `callback` returns true.\n tags: virtual\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_callback" ,
"type" : "FuncRef"
}
]
}
] ,
"static_functions" : [
]
} ,
{
"name" : "GSAIInfiniteProximity" ,
"path" : "res://src/Proximities/GSAIInfiniteProximity.gd" ,
"extends_class" : [
"GSAIProximity"
] ,
"extends_file" : "" ,
"icon" : "" ,
"signature" : "class GSAIInfiniteProximity" ,
"description" : " Determines any agent that is in the specified list as being neighbors with the\n owner agent, regardless of distance.\n" ,
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _init(agent: GSAISteeringAgent, agents: Array) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
"type" : "GSAISteeringAgent"
} ,
{
"name" : "agents" ,
"type" : "Array"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_find_neighbors" ,
"return_type" : "int" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _find_neighbors(callback: FuncRef) -> int" ,
"description" : " Returns a number of neighbors based on a `callback` function.\n\n `_find_neighbors` calls `callback` for each agent in the `agents` array and\n adds one to the count if its `callback` returns true.\n tags: virtual\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "callback" ,
"type" : "FuncRef"
2020-02-07 16:43:31 +01:00
}
]
}
2020-02-11 20:41:34 +01:00
] ,
"static_functions" : [
2020-02-07 16:43:31 +01:00
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIGroupBehavior" ,
"path" : "res://src/GSAIGroupBehavior.gd" ,
"extends_class" : [
"GSAISteeringBehavior"
] ,
"extends_file" : "" ,
"icon" : "" ,
"signature" : "class GSAIGroupBehavior" ,
"description" : " Base type for group-based steering behaviors.\n" ,
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
"name" : "proximity" ,
"data_type" : "GSAIProximity" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var proximity: GSAIProximity" ,
"description" : " Container to find neighbors of the agent and calculate group behavior.\n"
} ,
{
"name" : "_callback" ,
"data_type" : "FuncRef" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _callback: FuncRef" ,
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _init(agent: GSAISteeringAgent, _proximity: GSAIProximity) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
"type" : "GSAISteeringAgent"
} ,
{
"name" : "_proximity" ,
"type" : "GSAIProximity"
}
]
} ,
{
"name" : "_report_neighbor" ,
"return_type" : "bool" ,
"rpc_mode" : 0 ,
"signature" : "func _report_neighbor(_neighbor: GSAISteeringAgent) -> bool" ,
"description" : " Internal callback for the behavior to define whether or not a member is\n relevant\n tags: virtual\n" ,
"arguments" : [
{
"name" : "_neighbor" ,
"type" : "GSAISteeringAgent"
}
]
}
] ,
"static_functions" : [
]
} ,
{
"name" : "GSAIPath" ,
"path" : "res://src/GSAIPath.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
"Reference"
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIPath" ,
2020-02-07 16:43:31 +01:00
"description" : " Represents a path made up of Vector3 waypoints, split into segments path\n follow behaviors can use.\n" ,
"sub_classes" : [
{
2020-02-11 20:41:34 +01:00
"name" : "GSAISegment" ,
"path" : "res://src/GSAIPath.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAISegment" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
"name" : "begin" ,
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var begin: Vector3" ,
"description" : ""
} ,
{
"name" : "end" ,
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var end: Vector3" ,
"description" : ""
} ,
{
"name" : "length" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var length: float" ,
"description" : ""
} ,
{
"name" : "cumulative_length" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var cumulative_length: float" ,
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(_begin: Vector3, _end: Vector3) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_begin" ,
2020-02-07 16:43:31 +01:00
"type" : "Vector3"
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_end" ,
2020-02-07 16:43:31 +01:00
"type" : "Vector3"
}
]
}
] ,
"static_functions" : [
]
}
] ,
"constants" : [
] ,
"members" : [
{
"name" : "is_open" ,
"data_type" : "bool" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var is_open: bool" ,
"description" : " If `false`, the path loops.\n"
} ,
{
"name" : "length" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var length: float" ,
"description" : " Total length of the path.\n"
} ,
{
"name" : "_segments" ,
"data_type" : "Array" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _segments: Array" ,
"description" : ""
} ,
{
"name" : "_nearest_point_on_segment" ,
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _nearest_point_on_segment: Vector3" ,
"description" : ""
} ,
{
"name" : "_nearest_point_on_path" ,
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _nearest_point_on_path: Vector3" ,
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(waypoints: Array, _is_open: bool = false) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "waypoints" ,
"type" : "Array"
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_is_open" ,
2020-02-07 16:43:31 +01:00
"type" : "bool" ,
"default_value" : false
}
]
} ,
{
"name" : "create_path" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func create_path(waypoints: Array) -> null" ,
"description" : " Creates a path from a list of waypoints.\n" ,
"arguments" : [
{
"name" : "waypoints" ,
"type" : "Array"
}
]
} ,
{
"name" : "calculate_distance" ,
"return_type" : "float" ,
"rpc_mode" : 0 ,
"signature" : "func calculate_distance(agent_current_position: Vector3) -> float" ,
"description" : " Returns the distance from `agent_current_position` to the next waypoint.\n" ,
"arguments" : [
{
"name" : "agent_current_position" ,
"type" : "Vector3"
}
]
} ,
{
"name" : "calculate_target_position" ,
"return_type" : "Vector3" ,
"rpc_mode" : 0 ,
"signature" : "func calculate_target_position(target_distance: float) -> Vector3" ,
"description" : " Calculates a target position from the path's starting point based on the `target_distance`.\n" ,
"arguments" : [
{
"name" : "target_distance" ,
"type" : "float"
}
]
} ,
{
"name" : "get_start_point" ,
"return_type" : "Vector3" ,
"rpc_mode" : 0 ,
"signature" : "func get_start_point() -> Vector3" ,
"description" : " Returns the position of the first point on the path.\n" ,
"arguments" : [
]
} ,
{
"name" : "get_end_point" ,
"return_type" : "Vector3" ,
"rpc_mode" : 0 ,
"signature" : "func get_end_point() -> Vector3" ,
"description" : " Returns the position of the last point on the path.\n" ,
"arguments" : [
]
} ,
{
"name" : "_calculate_point_segment_distance_squared" ,
"return_type" : "float" ,
"rpc_mode" : 0 ,
"signature" : "func _calculate_point_segment_distance_squared(start: Vector3, end: Vector3, position: Vector3) -> float" ,
"description" : "" ,
"arguments" : [
{
"name" : "start" ,
"type" : "Vector3"
} ,
{
"name" : "end" ,
"type" : "Vector3"
} ,
{
"name" : "position" ,
"type" : "Vector3"
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIFollowPath" ,
"path" : "res://src/Behaviors/GSAIFollowPath.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAIArrive"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIFollowPath" ,
"description" : " Produces a linear acceleration that moves the agent along the specified path.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "path" ,
"data_type" : "GSAIPath" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var path: GSAIPath" ,
"description" : " The path to follow and travel along.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "path_offset" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var path_offset: float" ,
"description" : " The distance along the path to generate the next target position.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "is_arrive_enabled" ,
"data_type" : "bool" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var is_arrive_enabled: bool" ,
"description" : " Whether to use `GSAIArrive` behavior on an open path.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "prediction_time" ,
"data_type" : "float" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var prediction_time: float" ,
"description" : " The amount of time in the future to predict the owning agent's position along\n the path. Setting it to 0.0 will force non-predictive path following.\n"
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, _path: GSAIPath, _path_offset: float = 0, _prediction_time: float = 0) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_path" ,
"type" : "GSAIPath"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_path_offset" ,
"type" : "float" ,
"default_value" : 0
} ,
{
"name" : "_prediction_time" ,
"type" : "float" ,
"default_value" : 0
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_calculate_steering" ,
"return_type" : "null" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
"description" : "" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "acceleration" ,
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAISeparation" ,
"path" : "res://src/Behaviors/GSAISeparation.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAIGroupBehavior"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAISeparation" ,
"description" : " Calculates an acceleration that repels the agent from its neighbors in the\n given `GSAIProximity`.\n\n The acceleration is an average based on all neighbors, multiplied by a\n strength decreasing by the inverse square law in relation to distance, and it\n accumulates.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "decay_coefficient" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var decay_coefficient: float" ,
"description" : " The coefficient to calculate how fast the separation strength decays with distance.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_acceleration" ,
"data_type" : "GSAITargetAcceleration" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _acceleration: GSAITargetAcceleration" ,
"description" : ""
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
2020-02-11 20:41:34 +01:00
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _init(agent: GSAISteeringAgent, proximity: GSAIProximity) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
"type" : "GSAISteeringAgent"
} ,
{
"name" : "proximity" ,
"type" : "GSAIProximity"
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
"type" : "GSAITargetAcceleration"
}
]
} ,
{
"name" : "_report_neighbor" ,
"return_type" : "bool" ,
"rpc_mode" : 0 ,
"signature" : "func _report_neighbor(neighbor: GSAISteeringAgent) -> bool" ,
"description" : " Callback for the proximity to call when finding neighbors. Determines the amount of\n acceleration that `neighbor` imposes based on its distance from the owner agent.\n tags: virtual\n" ,
"arguments" : [
{
"name" : "neighbor" ,
"type" : "GSAISteeringAgent"
}
]
}
2020-02-07 16:43:31 +01:00
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIMatchOrientation" ,
"path" : "res://src/Behaviors/GSAIMatchOrientation.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISteeringBehavior"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIMatchOrientation" ,
"description" : " Calculates an angular acceleration to match an agent's orientation to that of\n its target. Attempts to make the agent arrive with zero remaining angular\n velocity.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "target" ,
"data_type" : "GSAIAgentLocation" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var target: GSAIAgentLocation" ,
"description" : " The target orientation for the behavior to try and match rotations to.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "alignment_tolerance" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var alignment_tolerance: float" ,
"description" : " The amount of distance in radians for the behavior to consider itself close\n enough to be matching the target agent's rotation.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "deceleration_radius" ,
"data_type" : "float" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var deceleration_radius: float" ,
"description" : " The amount of distance in radians from the goal to start slowing down.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "time_to_reach" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
2020-02-11 20:41:34 +01:00
"default_value" : 0.1 ,
2020-02-07 16:43:31 +01:00
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var time_to_reach: float = 0.1" ,
"description" : " The amount of time to reach the target velocity\n"
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, _target: GSAIAgentLocation) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_target" ,
"type" : "GSAIAgentLocation"
}
]
} ,
{
"name" : "_match_orientation" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _match_orientation(acceleration: GSAITargetAcceleration, desired_orientation: float) -> null" ,
"description" : "" ,
"arguments" : [
2020-02-07 16:43:31 +01:00
{
2020-02-11 20:41:34 +01:00
"name" : "acceleration" ,
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "desired_orientation" ,
"type" : "float"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIFlee" ,
"path" : "res://src/Behaviors/GSAIFlee.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISeek"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIFlee" ,
"description" : " Calculates acceleration to take an agent directly away from a target agent.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
2020-02-11 20:41:34 +01:00
"return_type" : "null" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, target: GSAIAgentLocation) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "target" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAIAgentLocation"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_calculate_steering" ,
"return_type" : "null" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
2020-02-11 20:41:34 +01:00
{
"name" : "acceleration" ,
"type" : "GSAITargetAcceleration"
}
2020-02-07 16:43:31 +01:00
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAICohesion" ,
"path" : "res://src/Behaviors/GSAICohesion.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAIGroupBehavior"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAICohesion" ,
"description" : " Calculates an acceleration that attempts to move the agent towards the center\n of mass of the agents in the area defined by the `GSAIProximity`.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_center_of_mass" ,
2020-02-07 16:43:31 +01:00
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _center_of_mass: Vector3" ,
2020-02-07 16:43:31 +01:00
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, proximity: GSAIProximity) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "proximity" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAIProximity"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_report_neighbor" ,
"return_type" : "bool" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _report_neighbor(neighbor: GSAISteeringAgent) -> bool" ,
"description" : " Callback for the proximity to call when finding neighbors. Adds `neighbor`'s position\n to the center of mass of the group.\n tags: virtual\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
"name" : "neighbor" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAILookWhereYouGo" ,
"path" : "res://src/Behaviors/GSAILookWhereYouGo.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAIMatchOrientation"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAILookWhereYouGo" ,
"description" : " Calculates an angular acceleration to match an agent's orientation to its\n direction of travel.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
2020-02-11 20:41:34 +01:00
2020-02-07 16:43:31 +01:00
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(accel: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "accel" ,
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIArrive" ,
"path" : "res://src/Behaviors/GSAIArrive.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISteeringBehavior"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIArrive" ,
"description" : " Calculates acceleration to take an agent to its target's location. The\n calculation attempts to arrive with zero remaining velocity.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "target" ,
"data_type" : "GSAIAgentLocation" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var target: GSAIAgentLocation" ,
"description" : " Target agent to arrive to.\n"
} ,
{
"name" : "arrival_tolerance" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var arrival_tolerance: float" ,
"description" : " Distance from the target for the agent to be considered successfully\n arrived.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "deceleration_radius" ,
"data_type" : "float" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var deceleration_radius: float" ,
"description" : " Distance from the target for the agent to begin slowing down.\n"
} ,
{
"name" : "time_to_reach" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var time_to_reach: float" ,
"description" : " Represents the time it takes to change acceleration.\n"
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, _target: GSAIAgentLocation) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_target" ,
"type" : "GSAIAgentLocation"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_arrive" ,
2020-02-07 16:43:31 +01:00
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _arrive(acceleration: GSAITargetAcceleration, target_position: Vector3) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
} ,
{
"name" : "target_position" ,
"type" : "Vector3"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_calculate_steering" ,
"return_type" : "null" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
"description" : "" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "acceleration" ,
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIBlend" ,
"path" : "res://src/Behaviors/GSAIBlend.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISteeringBehavior"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIBlend" ,
"description" : " Blends multiple steering behaviors into one, and returns a weighted\n acceleration from their calculations.\n\n Stores the behaviors internally as dictionaries of the form\n {\n \tbehavior : GSAISteeringBehavior,\n \tweight : float\n }\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
"name" : "_behaviors" ,
"data_type" : "Array" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _behaviors: Array" ,
"description" : ""
} ,
{
"name" : "_accel" ,
2020-02-11 20:41:34 +01:00
"data_type" : "GSAITargetAcceleration" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _accel: GSAITargetAcceleration" ,
2020-02-07 16:43:31 +01:00
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "add" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func add(behavior: GSAISteeringBehavior, weight: float) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : " Appends a behavior to the internal array along with its `weight`.\n" ,
"arguments" : [
{
"name" : "behavior" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringBehavior"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "weight" ,
"type" : "float"
}
]
} ,
{
"name" : "get_behavior_at" ,
"return_type" : "Dictionary" ,
"rpc_mode" : 0 ,
"signature" : "func get_behavior_at(index: int) -> Dictionary" ,
"description" : " Returns the behavior at the specified `index`, or an empty `Dictionary` if\n none was found.\n" ,
"arguments" : [
{
"name" : "index" ,
"type" : "int"
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(blended_accel: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "blended_accel" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIEvade" ,
"path" : "res://src/Behaviors/GSAIEvade.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAIPursue"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIEvade" ,
"description" : " Calculates acceleration to take an agent away from where a target agent is\n moving.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
2020-02-11 20:41:34 +01:00
2020-02-07 16:43:31 +01:00
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
2020-02-11 20:41:34 +01:00
"return_type" : "var" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, target: GSAISteeringAgent, predict_time_max: float = 1)" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "target" ,
"type" : "GSAISteeringAgent"
} ,
2020-02-07 16:43:31 +01:00
{
2020-02-11 20:41:34 +01:00
"name" : "predict_time_max" ,
"type" : "float" ,
"default_value" : 1
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_get_modified_acceleration" ,
"return_type" : "float" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _get_modified_acceleration() -> float" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
2020-02-11 20:41:34 +01:00
2020-02-07 16:43:31 +01:00
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIPriority" ,
"path" : "res://src/Behaviors/GSAIPriority.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISteeringBehavior"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIPriority" ,
"description" : " Container for multiple behaviors that returns the result of the first child\n behavior with non-zero acceleration.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_behaviors" ,
"data_type" : "Array" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _behaviors: Array" ,
"description" : ""
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "last_selected_index" ,
"data_type" : "int" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var last_selected_index: int" ,
"description" : " The index of the last behavior the container prioritized.\n"
} ,
{
"name" : "zero_threshold" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var zero_threshold: float" ,
"description" : " If a behavior's acceleration is lower than this threshold, the container\n considers it has an acceleration of zero.\n"
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, _zero_threshold: float = 0.001) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_zero_threshold" ,
2020-02-07 16:43:31 +01:00
"type" : "float" ,
2020-02-11 20:41:34 +01:00
"default_value" : 0.001
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "add" ,
2020-02-07 16:43:31 +01:00
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func add(behavior: GSAISteeringBehavior) -> null" ,
"description" : " Appends a steering behavior as a child of this container.\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "behavior" ,
"type" : "GSAISteeringBehavior"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "get_behavior_at" ,
"return_type" : "GSAISteeringBehavior" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func get_behavior_at(index: int) -> GSAISteeringBehavior" ,
"description" : " Returns the behavior at the position in the pool referred to by `index`, or\n `null` if no behavior was found.\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "index" ,
"type" : "int"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(accel: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "accel" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAISeek" ,
"path" : "res://src/Behaviors/GSAISeek.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISteeringBehavior"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAISeek" ,
"description" : " Calculates an acceleration to take an agent to a target agent's position\n directly.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
2020-02-11 20:41:34 +01:00
{
"name" : "target" ,
"data_type" : "GSAIAgentLocation" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var target: GSAIAgentLocation" ,
"description" : " The target that the behavior aims to move the agent to.\n"
}
2020-02-07 16:43:31 +01:00
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, _target: GSAIAgentLocation) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
2020-02-11 20:41:34 +01:00
{
"name" : "_target" ,
"type" : "GSAIAgentLocation"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIFace" ,
"path" : "res://src/Behaviors/GSAIFace.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAIMatchOrientation"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIFace" ,
"description" : " Calculates angular acceleration to rotate a target to face its target's\n position. The behavior attemps to arrive with zero remaining angular velocity.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
2020-02-11 20:41:34 +01:00
2020-02-07 16:43:31 +01:00
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, target: GSAIAgentLocation) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "target" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAIAgentLocation"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_face" ,
2020-02-07 16:43:31 +01:00
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _face(acceleration: GSAITargetAcceleration, target_position: Vector3) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "target_position" ,
"type" : "Vector3"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIAvoidCollisions" ,
"path" : "res://src/Behaviors/GSAIAvoidCollisions.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAIGroupBehavior"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIAvoidCollisions" ,
"description" : " Steers the agent to avoid obstacles in its path. Approximates obstacles as\n spheres.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_first_neighbor" ,
"data_type" : "GSAISteeringAgent" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _first_neighbor: GSAISteeringAgent" ,
"description" : ""
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_shortest_time" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _shortest_time: float" ,
"description" : ""
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_first_minimum_separation" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _first_minimum_separation: float" ,
"description" : ""
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_first_distance" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _first_distance: float" ,
"description" : ""
} ,
{
"name" : "_first_relative_position" ,
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _first_relative_position: Vector3" ,
"description" : ""
} ,
{
"name" : "_first_relative_velocity" ,
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _first_relative_velocity: Vector3" ,
"description" : ""
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, proximity: GSAIProximity) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "proximity" ,
"type" : "GSAIProximity"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_report_neighbor" ,
"return_type" : "bool" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _report_neighbor(neighbor: GSAISteeringAgent) -> bool" ,
"description" : " Callback for the proximity to call when finding neighbors. Keeps track of every `neighbor`\n that was found but only keeps the one the owning agent will most likely collide with.\n tags: virtual\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "neighbor" ,
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIPursue" ,
"path" : "res://src/Behaviors/GSAIPursue.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISteeringBehavior"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIPursue" ,
"description" : " Calculates an acceleration to make an agent intercept another based on the\n target agent's movement.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
"name" : "target" ,
2020-02-11 20:41:34 +01:00
"data_type" : "GSAISteeringAgent" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var target: GSAISteeringAgent" ,
"description" : " The target agent that the behavior is trying to intercept.\n"
} ,
{
"name" : "predict_time_max" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var predict_time_max: float" ,
"description" : " The maximum amount of time in the future the behavior predicts the target's\n location.\n"
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(agent: GSAISteeringAgent, _target: GSAISteeringAgent, _predict_time_max: float = 1) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "agent" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_target" ,
"type" : "GSAISteeringAgent"
} ,
{
"name" : "_predict_time_max" ,
"type" : "float" ,
"default_value" : 1
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_calculate_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _calculate_steering(acceleration: GSAITargetAcceleration) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
}
]
2020-02-11 20:41:34 +01:00
} ,
{
"name" : "_get_modified_acceleration" ,
"return_type" : "float" ,
"rpc_mode" : 0 ,
"signature" : "func _get_modified_acceleration() -> float" ,
"description" : "" ,
"arguments" : [
]
2020-02-07 16:43:31 +01:00
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAITargetAcceleration" ,
"path" : "res://src/GSAITargetAcceleration.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAITargetAcceleration" ,
"description" : " A desired linear and angular amount of acceleration requested by the steering\n system.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "linear" ,
"data_type" : "Vector3" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var linear: Vector3" ,
"description" : " Linear acceleration\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "angular" ,
"data_type" : "float" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var angular: float" ,
"description" : " Angular acceleration\n"
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
{
2020-02-11 20:41:34 +01:00
"name" : "set_zero" ,
2020-02-07 16:43:31 +01:00
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func set_zero() -> null" ,
"description" : " Sets the linear and angular components to 0.\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
2020-02-11 20:41:34 +01:00
2020-02-07 16:43:31 +01:00
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "add_scaled_accel" ,
2020-02-07 16:43:31 +01:00
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func add_scaled_accel(accel: GSAITargetAcceleration, scalar: float) -> null" ,
"description" : " Adds `accel`'s components, multiplied by `scalar`, to this one.\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "accel" ,
"type" : "GSAITargetAcceleration"
} ,
{
"name" : "scalar" ,
"type" : "float"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "get_magnitude_squared" ,
"return_type" : "float" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func get_magnitude_squared() -> float" ,
"description" : " Returns the squared magnitude of the linear and angular components.\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
2020-02-11 20:41:34 +01:00
]
} ,
{
"name" : "get_magnitude" ,
"return_type" : "float" ,
"rpc_mode" : 0 ,
"signature" : "func get_magnitude() -> float" ,
"description" : " Returns the magnitude of the linear and angular components.\n" ,
"arguments" : [
2020-02-07 16:43:31 +01:00
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIRigidBody2DAgent" ,
"path" : "res://src/Agents/GSAIRigidBody2DAgent.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISpecializedAgent"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIRigidBody2DAgent" ,
"description" : " A specialized steering agent that updates itself every frame so the user does\n not have to using a RigidBody2D\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
"name" : "body" ,
2020-02-11 20:41:34 +01:00
"data_type" : "RigidBody2D" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "_set_body" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var body: RigidBody2D" ,
"description" : " The RigidBody2D to keep track of\n"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "_last_position" ,
2020-02-11 20:41:34 +01:00
"data_type" : "Vector2" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _last_position: Vector2" ,
2020-02-07 16:43:31 +01:00
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "var" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(_body: RigidBody2D) -> var" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_body" ,
"type" : "RigidBody2D"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_apply_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _apply_steering(acceleration: GSAITargetAcceleration, _delta: float) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : " Moves the agent's `body` by target `acceleration`.\n tags: virtual\n" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_delta" ,
2020-02-07 16:43:31 +01:00
"type" : "float"
}
]
} ,
{
"name" : "_set_body" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _set_body(value: RigidBody2D) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "value" ,
2020-02-11 20:41:34 +01:00
"type" : "RigidBody2D"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_on_body_ready" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _on_body_ready() -> null" ,
"description" : "" ,
"arguments" : [
]
} ,
{
"name" : "_on_SceneTree_frame" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _on_SceneTree_frame() -> null" ,
"description" : "" ,
"arguments" : [
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIKinematicBody3DAgent" ,
"path" : "res://src/Agents/GSAIKinematicBody3DAgent.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISpecializedAgent"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIKinematicBody3DAgent" ,
2020-02-07 16:43:31 +01:00
"description" : " A specialized steering agent that updates itself every frame so the user does\n not have to using a KinematicBody\n" ,
"sub_classes" : [
] ,
"constants" : [
{
"name" : "MovementType" ,
"value" : {
"SLIDE" : 0 ,
"COLLIDE" : 1 ,
"POSITION" : 2
} ,
"data_type" : "Dictionary" ,
"signature" : "const MovementType: Dictionary = {\"COLLIDE\":1,\"POSITION\":2,\"SLIDE\":0}" ,
"description" : ""
}
] ,
"members" : [
{
"name" : "body" ,
"data_type" : "KinematicBody" ,
"default_value" : null ,
"setter" : "_set_body" ,
"getter" : "" ,
"export" : false ,
"signature" : "var body: KinematicBody" ,
"description" : " The KinematicBody to keep track of\n"
} ,
{
"name" : "movement_type" ,
"data_type" : "int" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var movement_type: int" ,
"description" : " The type of movement the body executes\n"
} ,
{
"name" : "_last_position" ,
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _last_position: Vector3" ,
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "var" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(_body: KinematicBody, _movement_type: int) -> var" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_body" ,
2020-02-07 16:43:31 +01:00
"type" : "KinematicBody"
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_movement_type" ,
2020-02-07 16:43:31 +01:00
"type" : "int"
}
]
} ,
{
"name" : "_apply_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _apply_steering(acceleration: GSAITargetAcceleration, delta: float) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : " Moves the agent's `body` by target `acceleration`.\n tags: virtual\n" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "delta" ,
"type" : "float"
}
]
} ,
{
"name" : "_apply_sliding_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _apply_sliding_steering(accel: Vector3) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "accel" ,
"type" : "Vector3"
}
]
} ,
{
"name" : "_apply_collide_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _apply_collide_steering(accel: Vector3, delta: float) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "accel" ,
"type" : "Vector3"
} ,
{
"name" : "delta" ,
"type" : "float"
}
]
} ,
{
"name" : "_apply_position_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _apply_position_steering(accel: Vector3, delta: float) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "accel" ,
"type" : "Vector3"
} ,
{
"name" : "delta" ,
"type" : "float"
}
]
} ,
{
"name" : "_apply_orientation_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _apply_orientation_steering(angular_acceleration: float, delta: float) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "angular_acceleration" ,
"type" : "float"
} ,
{
"name" : "delta" ,
"type" : "float"
}
]
} ,
{
"name" : "_set_body" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _set_body(value: KinematicBody) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "value" ,
"type" : "KinematicBody"
}
]
} ,
{
"name" : "_on_SceneTree_physics_frame" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _on_SceneTree_physics_frame() -> null" ,
"description" : "" ,
"arguments" : [
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAISpecializedAgent" ,
"path" : "res://src/Agents/GSAISpecializedAgent.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISteeringAgent"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAISpecializedAgent" ,
2020-02-07 16:43:31 +01:00
"description" : " A base class for a specialized steering agent that updates itself every frame\n so the user does not have to. All other specialized agents derive from this.\n tags: abstract\n" ,
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
"name" : "calculate_velocities" ,
"data_type" : "bool" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var calculate_velocities: bool" ,
"description" : " If `true`, calculates linear and angular velocities based on the previous\n frame. When `false`, the user must keep those values updated.\n"
} ,
{
"name" : "apply_linear_drag" ,
"data_type" : "bool" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var apply_linear_drag: bool" ,
2020-02-11 20:41:34 +01:00
"description" : " If `true`, interpolates the current linear velocity towards 0 by the \n `linear_drag_percentage` value.\n Does not apply to `RigidBody` and `RigidBody2D` nodes.\n"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "apply_angular_drag" ,
"data_type" : "bool" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var apply_angular_drag: bool" ,
2020-02-11 20:41:34 +01:00
"description" : " If `true`, interpolates the current angular velocity towards 0 by the\n `angular_drag_percentage` value.\n Does not apply to `RigidBody` and `RigidBody2D` nodes.\n"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "linear_drag_percentage" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var linear_drag_percentage: float" ,
2020-02-11 20:41:34 +01:00
"description" : " The percentage between the current linear velocity and 0 to interpolate by if\n `apply_linear_drag` is true.\n Does not apply to `RigidBody` and `RigidBody2D` nodes.\n"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "angular_drag_percentage" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var angular_drag_percentage: float" ,
2020-02-11 20:41:34 +01:00
"description" : " The percentage between the current angular velocity and 0 to interpolate by if\n `apply_angular_drag` is true.\n Does not apply to `RigidBody` and `RigidBody2D` nodes.\n"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "_last_orientation" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _last_orientation: float" ,
"description" : ""
} ,
{
"name" : "_body_type" ,
"data_type" : "int" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _body_type: int" ,
"description" : ""
} ,
{
"name" : "_applied_steering" ,
"data_type" : "bool" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _applied_steering: bool" ,
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_apply_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _apply_steering(_acceleration: GSAITargetAcceleration, _delta: float) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : " Moves the agent's body by target `acceleration`.\n tags: virtual\n" ,
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_acceleration" ,
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_delta" ,
2020-02-07 16:43:31 +01:00
"type" : "float"
}
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIRigidBody3DAgent" ,
"path" : "res://src/Agents/GSAIRigidBody3DAgent.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISpecializedAgent"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIRigidBody3DAgent" ,
"description" : " A specialized steering agent that updates itself every frame so the user does\n not have to using a RigidBody\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
"name" : "body" ,
2020-02-11 20:41:34 +01:00
"data_type" : "RigidBody" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "_set_body" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var body: RigidBody" ,
"description" : " The RigidBody to keep track of\n"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "_last_position" ,
2020-02-11 20:41:34 +01:00
"data_type" : "Vector3" ,
2020-02-07 16:43:31 +01:00
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var _last_position: Vector3" ,
2020-02-07 16:43:31 +01:00
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "var" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(_body: RigidBody) -> var" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_body" ,
"type" : "RigidBody"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_apply_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _apply_steering(acceleration: GSAITargetAcceleration, _delta: float) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : " Moves the agent's `body` by target `acceleration`.\n tags: virtual\n" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_delta" ,
2020-02-07 16:43:31 +01:00
"type" : "float"
}
]
} ,
{
"name" : "_set_body" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _set_body(value: RigidBody) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
"name" : "value" ,
2020-02-11 20:41:34 +01:00
"type" : "RigidBody"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
"name" : "_on_body_ready" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _on_body_ready() -> null" ,
"description" : "" ,
"arguments" : [
]
} ,
{
"name" : "_on_SceneTree_frame" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _on_SceneTree_frame() -> null" ,
"description" : "" ,
"arguments" : [
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIKinematicBody2DAgent" ,
"path" : "res://src/Agents/GSAIKinematicBody2DAgent.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAISpecializedAgent"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIKinematicBody2DAgent" ,
2020-02-07 16:43:31 +01:00
"description" : " A specialized steering agent that updates itself every frame so the user does\n not have to using a KinematicBody2D\n" ,
"sub_classes" : [
] ,
"constants" : [
{
"name" : "MovementType" ,
"value" : {
"SLIDE" : 0 ,
"COLLIDE" : 1 ,
"POSITION" : 2
} ,
"data_type" : "Dictionary" ,
"signature" : "const MovementType: Dictionary = {\"COLLIDE\":1,\"POSITION\":2,\"SLIDE\":0}" ,
"description" : ""
}
] ,
"members" : [
{
"name" : "body" ,
"data_type" : "KinematicBody2D" ,
"default_value" : null ,
"setter" : "_set_body" ,
"getter" : "" ,
"export" : false ,
"signature" : "var body: KinematicBody2D" ,
"description" : " The KinematicBody2D to keep track of\n"
} ,
{
"name" : "movement_type" ,
"data_type" : "int" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var movement_type: int" ,
"description" : " The type of movement the body executes\n"
} ,
{
"name" : "_last_position" ,
"data_type" : "Vector2" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var _last_position: Vector2" ,
"description" : ""
}
] ,
"signals" : [
] ,
"methods" : [
{
"name" : "_init" ,
"return_type" : "var" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _init(_body: KinematicBody2D, _movement_type: int) -> var" ,
2020-02-07 16:43:31 +01:00
"description" : "" ,
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "_body" ,
2020-02-07 16:43:31 +01:00
"type" : "KinematicBody2D"
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "_movement_type" ,
2020-02-07 16:43:31 +01:00
"type" : "int"
}
]
} ,
{
"name" : "_apply_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func _apply_steering(acceleration: GSAITargetAcceleration, delta: float) -> null" ,
2020-02-07 16:43:31 +01:00
"description" : " Moves the agent's `body` by target `acceleration`.\n tags: virtual\n" ,
"arguments" : [
{
"name" : "acceleration" ,
2020-02-11 20:41:34 +01:00
"type" : "GSAITargetAcceleration"
2020-02-07 16:43:31 +01:00
} ,
{
"name" : "delta" ,
"type" : "float"
}
]
} ,
{
"name" : "_apply_sliding_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _apply_sliding_steering(accel: Vector3) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "accel" ,
"type" : "Vector3"
}
]
} ,
{
"name" : "_apply_collide_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _apply_collide_steering(accel: Vector3, delta: float) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "accel" ,
"type" : "Vector3"
} ,
{
"name" : "delta" ,
"type" : "float"
}
]
} ,
{
"name" : "_apply_position_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _apply_position_steering(accel: Vector3, delta: float) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "accel" ,
"type" : "Vector3"
} ,
{
"name" : "delta" ,
"type" : "float"
}
]
} ,
{
"name" : "_apply_orientation_steering" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _apply_orientation_steering(angular_acceleration: float, delta: float) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "angular_acceleration" ,
"type" : "float"
} ,
{
"name" : "delta" ,
"type" : "float"
}
]
} ,
{
"name" : "_set_body" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _set_body(value: KinematicBody2D) -> null" ,
"description" : "" ,
"arguments" : [
{
"name" : "value" ,
"type" : "KinematicBody2D"
}
]
} ,
{
"name" : "_on_SceneTree_physics_frame" ,
"return_type" : "null" ,
"rpc_mode" : 0 ,
"signature" : "func _on_SceneTree_physics_frame() -> null" ,
"description" : "" ,
"arguments" : [
]
}
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIUtils" ,
"path" : "res://src/GSAIUtils.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIUtils" ,
"description" : " Math and vector utility functions.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
2020-02-11 20:41:34 +01:00
2020-02-07 16:43:31 +01:00
] ,
"signals" : [
] ,
"methods" : [
2020-02-11 20:41:34 +01:00
] ,
"static_functions" : [
2020-02-07 16:43:31 +01:00
{
2020-02-11 20:41:34 +01:00
"name" : "clampedv3" ,
"return_type" : "Vector3" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func clampedv3(vector: Vector3, limit: float) -> Vector3" ,
"description" : " Returns the `vector` with its length capped to `limit`.\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "vector" ,
"type" : "Vector3"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "limit" ,
"type" : "float"
2020-02-07 16:43:31 +01:00
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "vector3_to_angle" ,
"return_type" : "float" ,
2020-02-07 16:43:31 +01:00
"rpc_mode" : 0 ,
2020-02-11 20:41:34 +01:00
"signature" : "func vector3_to_angle(vector: Vector3) -> float" ,
"description" : " Returns an angle in radians between the positive X axis and the `vector`.\n\n This assumes orientation for 2D agents or 3D agents that are upright and\n rotate around the Y axis.\n" ,
2020-02-07 16:43:31 +01:00
"arguments" : [
{
2020-02-11 20:41:34 +01:00
"name" : "vector" ,
"type" : "Vector3"
}
]
} ,
{
"name" : "angle_to_vector2" ,
"return_type" : "Vector2" ,
"rpc_mode" : 0 ,
"signature" : "func angle_to_vector2(angle: float) -> Vector2" ,
"description" : " Returns a directional vector from the given orientation angle.\n \n This assumes orientation for 2D agents or 3D agents that are upright and\n rotate around the Y axis.\n" ,
"arguments" : [
{
"name" : "angle" ,
"type" : "float"
}
]
} ,
{
"name" : "to_vector2" ,
"return_type" : "Vector2" ,
"rpc_mode" : 0 ,
"signature" : "func to_vector2(vector: Vector3) -> Vector2" ,
"description" : " Returns a vector2 with `vector`'s x and y components.\n" ,
"arguments" : [
{
"name" : "vector" ,
"type" : "Vector3"
}
]
} ,
{
"name" : "to_vector3" ,
"return_type" : "Vector3" ,
"rpc_mode" : 0 ,
"signature" : "func to_vector3(vector: Vector2) -> Vector3" ,
"description" : " Returns a vector3 with `vector`'s x and y components and 0 in z.\n" ,
"arguments" : [
{
"name" : "vector" ,
"type" : "Vector2"
2020-02-07 16:43:31 +01:00
}
]
}
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAISteeringAgent" ,
"path" : "res://src/GSAISteeringAgent.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
2020-02-11 20:41:34 +01:00
"GSAIAgentLocation"
2020-02-07 16:43:31 +01:00
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAISteeringAgent" ,
"description" : " Adds velocity, speed, and size data to `GSAIAgentLocation`.\n\n It is the character's responsibility to keep this information up to date for\n the steering toolkit to work correctly.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "zero_linear_speed_threshold" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var zero_linear_speed_threshold: float" ,
"description" : " The amount of velocity to be considered effectively not moving.\n"
} ,
{
"name" : "linear_speed_max" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var linear_speed_max: float" ,
"description" : " The maximum speed at which the agent can move.\n"
} ,
{
"name" : "linear_acceleration_max" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var linear_acceleration_max: float" ,
"description" : " The maximum amount of acceleration that any behavior can apply to the agent.\n"
} ,
{
"name" : "angular_speed_max" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var angular_speed_max: float" ,
"description" : " The maximum amount of angular speed at which the agent can rotate.\n"
} ,
{
"name" : "angular_acceleration_max" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var angular_acceleration_max: float" ,
"description" : " The maximum amount of angular acceleration that any behavior can apply to an\n agent.\n"
} ,
{
"name" : "linear_velocity" ,
2020-02-07 16:43:31 +01:00
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var linear_velocity: Vector3" ,
"description" : " Current velocity of the agent.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "angular_velocity" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var angular_velocity: float" ,
"description" : " Current angular velocity of the agent.\n"
} ,
{
"name" : "bounding_radius" ,
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var bounding_radius: float" ,
"description" : " The radius of the sphere that approximates the agent's size in space.\n"
} ,
{
"name" : "is_tagged" ,
"data_type" : "bool" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
"signature" : "var is_tagged: bool" ,
"description" : " Used internally by group behaviors and proximities to mark the agent as already\n considered.\n"
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
] ,
"static_functions" : [
]
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "GSAIAgentLocation" ,
"path" : "res://src/GSAIAgentLocation.gd" ,
2020-02-07 16:43:31 +01:00
"extends_class" : [
] ,
"extends_file" : "" ,
"icon" : "" ,
2020-02-11 20:41:34 +01:00
"signature" : "class GSAIAgentLocation" ,
"description" : " Represents an agent with only a location and an orientation.\n" ,
2020-02-07 16:43:31 +01:00
"sub_classes" : [
] ,
"constants" : [
] ,
"members" : [
{
2020-02-11 20:41:34 +01:00
"name" : "position" ,
2020-02-07 16:43:31 +01:00
"data_type" : "Vector3" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var position: Vector3" ,
"description" : " The agent's position in space.\n"
2020-02-07 16:43:31 +01:00
} ,
{
2020-02-11 20:41:34 +01:00
"name" : "orientation" ,
2020-02-07 16:43:31 +01:00
"data_type" : "float" ,
"default_value" : null ,
"setter" : "" ,
"getter" : "" ,
"export" : false ,
2020-02-11 20:41:34 +01:00
"signature" : "var orientation: float" ,
"description" : " The agent's orientation on its Y axis rotation.\n"
2020-02-07 16:43:31 +01:00
}
] ,
"signals" : [
] ,
"methods" : [
] ,
"static_functions" : [
]
}
]