NavigationMeshSourceGeometryData2D

package
v0.0.0-...-80877a9 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package NavigationMeshSourceGeometryData2D provides methods for working with NavigationMeshSourceGeometryData2D object instances.

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 Instance

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

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 [param carve] is [code]true[/code] 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 [param 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 [param 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) HasData

func (self Instance) HasData() bool

Returns [code]true[/code] when parsed source geometry data exists.

func (Instance) Merge

func (self Instance) Merge(other_geometry [1]gdclass.NavigationMeshSourceGeometryData2D)

Adds the geometry data of another [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) 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) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

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