Documentation
¶
Overview ¶
Container for parsed source geometry data used in navigation mesh baking.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AddObstructionOutline(shape_outline []Vector2.XY)
- func (self Instance) AddProjectedObstruction(vertices []Vector2.XY, carve bool)
- func (self Instance) AddTraversableOutline(shape_outline []Vector2.XY)
- func (self Instance) AppendObstructionOutlines(obstruction_outlines [][]Vector2.XY)
- func (self Instance) AppendTraversableOutlines(traversable_outlines [][]Vector2.XY)
- func (self Instance) AsNavigationMeshSourceGeometryData2D() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) Clear()
- func (self Instance) ClearProjectedObstructions()
- func (self Instance) GetBounds() Rect2.PositionSize
- func (self Instance) HasData() bool
- func (self Instance) ID() ID
- func (self Instance) Merge(other_geometry Instance)
- func (self Instance) ObstructionOutlines() [][]Vector2.XY
- func (self Instance) ProjectedObstructions() []any
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetObstructionOutlines(value [][]Vector2.XY)
- func (self Instance) SetProjectedObstructions(value []any)
- func (self Instance) SetTraversableOutlines(value [][]Vector2.XY)
- func (self Instance) TraversableOutlines() [][]Vector2.XY
- func (self Instance) Virtual(name string) reflect.Value
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]) AsNavigationMeshSourceGeometryData2D ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
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.NavigationMeshSourceGeometryData2D
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AddObstructionOutline ¶
Adds the outline points of a shape as obstructed area.
func (Instance) AddProjectedObstruction ¶
Adds a projected obstruction shape to the source geometry. If 'carve' is true the carved shape will not be affected by additional offsets (e.g. agent radius) of the navigation mesh baking process.
func (Instance) AddTraversableOutline ¶
Adds the outline points of a shape as traversable area.
func (Instance) AppendObstructionOutlines ¶
Appends another array of 'obstruction_outlines' at the end of the existing obstruction outlines array.
func (Instance) AppendTraversableOutlines ¶
Appends another array of 'traversable_outlines' at the end of the existing traversable outlines array.
func (Instance) AsNavigationMeshSourceGeometryData2D ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) ClearProjectedObstructions ¶
func (self Instance) ClearProjectedObstructions()
Clears all projected obstructions.
func (Instance) GetBounds ¶
func (self Instance) GetBounds() Rect2.PositionSize
Returns an axis-aligned bounding box that covers all the stored geometry data. The bounds are calculated when calling this function with the result cached until further geometry changes are made.
func (Instance) Merge ¶
Adds the geometry data of another graphics.gd/classdb/NavigationMeshSourceGeometryData2D to the navigation mesh baking data.