BoxMesh

package
v0.0.0-...-546f9d4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package BoxMesh provides methods for working with BoxMesh 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
	AsBoxMesh() Instance
}

type Instance

type Instance [1]gdclass.BoxMesh

Generate an axis-aligned box [PrimitiveMesh]. The box's UV layout is arranged in a 3×2 layout that allows texturing each face individually. To apply the same texture on all faces, change the material's UV property to [code]Vector3(3, 2, 1)[/code]. This is equivalent to adding [code]UV *= vec2(3.0, 2.0)[/code] in a vertex shader. [b]Note:[/b] When using a large textured [BoxMesh] (e.g. as a floor), you may stumble upon UV jittering issues depending on the camera angle. To solve this, increase [member subdivide_depth], [member subdivide_height] and [member subdivide_width] until you no longer notice UV jittering.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsBoxMesh

func (self Instance) AsBoxMesh() Instance

func (Instance) AsMesh

func (self Instance) AsMesh() Mesh.Instance

func (Instance) AsObject

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

func (Instance) AsPrimitiveMesh

func (self Instance) AsPrimitiveMesh() PrimitiveMesh.Instance

func (Instance) AsRefCounted

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

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) SetSize

func (self Instance) SetSize(value Vector3.XYZ)

func (Instance) SetSubdivideDepth

func (self Instance) SetSubdivideDepth(value int)

func (Instance) SetSubdivideHeight

func (self Instance) SetSubdivideHeight(value int)

func (Instance) SetSubdivideWidth

func (self Instance) SetSubdivideWidth(value int)

func (Instance) Size

func (self Instance) Size() Vector3.XYZ

func (Instance) SubdivideDepth

func (self Instance) SubdivideDepth() int

func (Instance) SubdivideHeight

func (self Instance) SubdivideHeight() int

func (Instance) SubdivideWidth

func (self Instance) SubdivideWidth() int

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