Documentation
¶
Overview ¶
Package NavigationMeshSourceGeometryData3D provides methods for working with NavigationMeshSourceGeometryData3D object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AddFaces(faces []Vector3.XYZ, xform Transform3D.BasisOrigin)
- func (self Instance) AddMesh(mesh [1]gdclass.Mesh, xform Transform3D.BasisOrigin)
- func (self Instance) AddMeshArray(mesh_array []any, xform Transform3D.BasisOrigin)
- func (self Instance) AddProjectedObstruction(vertices []Vector3.XYZ, elevation Float.X, height Float.X, carve bool)
- func (self Instance) AppendArrays(vertices []float32, indices []int32)
- func (self Instance) AsNavigationMeshSourceGeometryData3D() 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() AABB.PositionSize
- func (self Instance) HasData() bool
- func (self Instance) Indices() []int32
- func (self Instance) Merge(other_geometry [1]gdclass.NavigationMeshSourceGeometryData3D)
- func (self Instance) ProjectedObstructions() []any
- func (self Instance) SetIndices(value []int32)
- func (self Instance) SetProjectedObstructions(value []any)
- func (self Instance) SetVertices(value []float32)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Vertices() []float32
- 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 Instance ¶
type Instance [1]gdclass.NavigationMeshSourceGeometryData3D
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 (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 ¶
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 (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() 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) Merge ¶
func (self Instance) Merge(other_geometry [1]gdclass.NavigationMeshSourceGeometryData3D)
Adds the geometry data of another [NavigationMeshSourceGeometryData3D] to the navigation mesh baking data.