NavigationMeshSourceGeometryData3D

package
v0.0.0-...-59761c8 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package NavigationMeshSourceGeometryData3D provides methods for working with NavigationMeshSourceGeometryData3D 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
	AsNavigationMeshSourceGeometryData3D() 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) AddFaces

func (self Instance) AddFaces(faces []Vector3.XYZ, xform Transform3D.BasisOrigin)

Adds an array of vertex positions to the geometry data for navigation mesh baking to form triangulated faces. For each face the array must have three vertex positions in clockwise winding order. Since [NavigationMesh] resources have no transform, all vertex positions need to be offset by the node's transform using [param xform].

func (Instance) AddMesh

func (self Instance) AddMesh(mesh [1]gdclass.Mesh, xform Transform3D.BasisOrigin)

Adds the geometry data of a [Mesh] resource to the navigation mesh baking data. The mesh must have valid triangulated mesh data to be considered. Since [NavigationMesh] resources have no transform, all vertex positions need to be offset by the node's transform using [param xform].

func (Instance) AddMeshArray

func (self Instance) AddMeshArray(mesh_array []any, xform Transform3D.BasisOrigin)

Adds an [Array] the size of [constant Mesh.ARRAY_MAX] and with vertices at index [constant Mesh.ARRAY_VERTEX] and indices at index [constant Mesh.ARRAY_INDEX] to the navigation mesh baking data. The array must have valid triangulated mesh data to be considered. Since [NavigationMesh] resources have no transform, all vertex positions need to be offset by the node's transform using [param xform].

func (Instance) AddProjectedObstruction

func (self Instance) AddProjectedObstruction(vertices []Vector3.XYZ, elevation Float.X, height Float.X, carve bool)

Adds a projected obstruction shape to the source geometry. The [param vertices] are considered projected on a xz-axes plane, placed at the global y-axis [param elevation] and extruded by [param height]. 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) AppendArrays

func (self Instance) AppendArrays(vertices []float32, indices []int32)

Appends arrays of [param vertices] and [param indices] at the end of the existing arrays. Adds the existing index as an offset to the appended indices.

func (Instance) AsNavigationMeshSourceGeometryData3D

func (self Instance) AsNavigationMeshSourceGeometryData3D() 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() AABB.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 [code]true[/code] when parsed source geometry data exists.

func (Instance) Indices

func (self Instance) Indices() []int32

func (Instance) Merge

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

Adds the geometry data of another [NavigationMeshSourceGeometryData3D] to the navigation mesh baking data.

func (Instance) ProjectedObstructions

func (self Instance) ProjectedObstructions() []any

func (Instance) SetIndices

func (self Instance) SetIndices(value []int32)

func (Instance) SetProjectedObstructions

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

func (Instance) SetVertices

func (self Instance) SetVertices(value []float32)

func (*Instance) UnsafePointer

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

func (Instance) Vertices

func (self Instance) Vertices() []float32

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