NavigationMeshSourceGeometryData2D

package
v0.0.0-...-535787f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Container for parsed source geometry data used in navigation mesh baking.

Index

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 Any

type Any interface {
	gd.IsClass
	AsNavigationMeshSourceGeometryData2D() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

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 (self *Extension[T]) AsNavigationMeshSourceGeometryData2D() Instance

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsRefCounted

func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted

func (*Extension[T]) AsResource

func (self *Extension[T]) AsResource() Resource.Instance

type ID

type ID Object.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.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

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 New

func New() Instance

func (Instance) AddObstructionOutline

func (self Instance) AddObstructionOutline(shape_outline []Vector2.XY)

Adds the outline points of a shape as obstructed area.

func (Instance) AddProjectedObstruction

func (self Instance) AddProjectedObstruction(vertices []Vector2.XY, carve bool)

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

func (self Instance) AddTraversableOutline(shape_outline []Vector2.XY)

Adds the outline points of a shape as traversable area.

func (Instance) AppendObstructionOutlines

func (self Instance) AppendObstructionOutlines(obstruction_outlines [][]Vector2.XY)

Appends another array of 'obstruction_outlines' at the end of the existing obstruction outlines array.

func (Instance) AppendTraversableOutlines

func (self Instance) AppendTraversableOutlines(traversable_outlines [][]Vector2.XY)

Appends another array of 'traversable_outlines' at the end of the existing traversable outlines array.

func (Instance) AsNavigationMeshSourceGeometryData2D

func (self Instance) AsNavigationMeshSourceGeometryData2D() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) Clear

func (self Instance) Clear()

Clears the internal data.

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) HasData

func (self Instance) HasData() bool

Returns true when parsed source geometry data exists.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) Merge

func (self Instance) Merge(other_geometry Instance)

Adds the geometry data of another graphics.gd/classdb/NavigationMeshSourceGeometryData2D to the navigation mesh baking data.

func (Instance) ObstructionOutlines

func (self Instance) ObstructionOutlines() [][]Vector2.XY

func (Instance) ProjectedObstructions

func (self Instance) ProjectedObstructions() []any

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) SetObstructionOutlines

func (self Instance) SetObstructionOutlines(value [][]Vector2.XY)

func (Instance) SetProjectedObstructions

func (self Instance) SetProjectedObstructions(value []any)

func (Instance) SetTraversableOutlines

func (self Instance) SetTraversableOutlines(value [][]Vector2.XY)

func (Instance) TraversableOutlines

func (self Instance) TraversableOutlines() [][]Vector2.XY

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL