Documentation
¶
Overview ¶
Package NavigationPathQueryParameters2D provides methods for working with NavigationPathQueryParameters2D object instances.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AsNavigationPathQueryParameters2D() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) ID() ID
- func (self Instance) Map() RID.Any
- func (self Instance) MetadataFlags() PathMetadataFlags
- func (self Instance) NavigationLayers() int
- func (self Instance) PathPostprocessing() PathPostProcessing
- func (self Instance) PathfindingAlgorithm() PathfindingAlgorithm
- func (self Instance) SetMap(value RID.Any)
- func (self Instance) SetMetadataFlags(value PathMetadataFlags)
- func (self Instance) SetNavigationLayers(value int)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetPathPostprocessing(value PathPostProcessing)
- func (self Instance) SetPathfindingAlgorithm(value PathfindingAlgorithm)
- func (self Instance) SetSimplifyEpsilon(value Float.X)
- func (self Instance) SetSimplifyPath(value bool)
- func (self Instance) SetStartPosition(value Vector2.XY)
- func (self Instance) SetTargetPosition(value Vector2.XY)
- func (self Instance) SimplifyEpsilon() Float.X
- func (self Instance) SimplifyPath() bool
- func (self Instance) StartPosition() Vector2.XY
- func (self Instance) TargetPosition() Vector2.XY
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type PathMetadataFlags
- type PathPostProcessing
- type PathfindingAlgorithm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsNavigationPathQueryParameters2D ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.NavigationPathQueryParameters2D
By changing various properties of this object, such as the start and target position, you can configure path queries to the [NavigationServer2D].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsNavigationPathQueryParameters2D ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) MetadataFlags ¶
func (self Instance) MetadataFlags() PathMetadataFlags
func (Instance) NavigationLayers ¶
func (Instance) PathPostprocessing ¶
func (self Instance) PathPostprocessing() PathPostProcessing
func (Instance) PathfindingAlgorithm ¶
func (self Instance) PathfindingAlgorithm() PathfindingAlgorithm
func (Instance) SetMetadataFlags ¶
func (self Instance) SetMetadataFlags(value PathMetadataFlags)
func (Instance) SetNavigationLayers ¶
func (Instance) SetPathPostprocessing ¶
func (self Instance) SetPathPostprocessing(value PathPostProcessing)
func (Instance) SetPathfindingAlgorithm ¶
func (self Instance) SetPathfindingAlgorithm(value PathfindingAlgorithm)
func (Instance) SetSimplifyEpsilon ¶
func (Instance) SetSimplifyPath ¶
func (Instance) SetStartPosition ¶
func (Instance) SetTargetPosition ¶
func (Instance) SimplifyEpsilon ¶
func (Instance) SimplifyPath ¶
func (Instance) StartPosition ¶
func (Instance) TargetPosition ¶
func (*Instance) UnsafePointer ¶
type PathMetadataFlags ¶
type PathMetadataFlags int //gd:NavigationPathQueryParameters2D.PathMetadataFlags
const ( /*Don't include any additional metadata about the returned path.*/ PathMetadataIncludeNone PathMetadataFlags = 0 /*Include the type of navigation primitive (region or link) that each point of the path goes through.*/ PathMetadataIncludeTypes PathMetadataFlags = 1 /*Include the [RID]s of the regions and links that each point of the path goes through.*/ PathMetadataIncludeRids PathMetadataFlags = 2 /*Include the [code]ObjectID[/code]s of the [Object]s which manage the regions and links each point of the path goes through.*/ PathMetadataIncludeOwners PathMetadataFlags = 4 /*Include all available metadata about the returned path.*/ PathMetadataIncludeAll PathMetadataFlags = 7 )
type PathPostProcessing ¶
type PathPostProcessing int //gd:NavigationPathQueryParameters2D.PathPostProcessing
const ( /*Applies a funnel algorithm to the raw path corridor found by the pathfinding algorithm. This will result in the shortest path possible inside the path corridor. This postprocessing very much depends on the navigation mesh polygon layout and the created corridor. Especially tile- or gridbased layouts can face artificial corners with diagonal movement due to a jagged path corridor imposed by the cell shapes.*/ PathPostprocessingCorridorfunnel PathPostProcessing = 0 /*Centers every path position in the middle of the traveled navigation mesh polygon edge. This creates better paths for tile- or gridbased layouts that restrict the movement to the cells center.*/ PathPostprocessingEdgecentered PathPostProcessing = 1 /*Applies no postprocessing and returns the raw path corridor as found by the pathfinding algorithm.*/ PathPostprocessingNone PathPostProcessing = 2 )
type PathfindingAlgorithm ¶
type PathfindingAlgorithm int //gd:NavigationPathQueryParameters2D.PathfindingAlgorithm
const ( /*The path query uses the default A* pathfinding algorithm.*/ PathfindingAlgorithmAstar PathfindingAlgorithm = 0 )