GLTFPhysicsShape

package
v0.0.0-...-2b43b64 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package GLTFPhysicsShape provides methods for working with GLTFPhysicsShape object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromDictionary

func FromDictionary(dictionary Structure) [1]gdclass.GLTFPhysicsShape

Creates a new GLTFPhysicsShape instance by parsing the given [Dictionary].

func FromNode

func FromNode(shape_node [1]gdclass.CollisionShape3D) [1]gdclass.GLTFPhysicsShape

Creates a new GLTFPhysicsShape instance from the given Godot [CollisionShape3D] node.

func FromResource

func FromResource(shape_resource [1]gdclass.Shape3D) [1]gdclass.GLTFPhysicsShape

Creates a new GLTFPhysicsShape instance from the given Godot [Shape3D] resource.

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
	AsGLTFPhysicsShape() Instance
}

type Instance

type Instance [1]gdclass.GLTFPhysicsShape

Represents a physics shape as defined by the [code]OMI_physics_shape[/code] or [code]OMI_collider[/code] GLTF extensions. This class is an intermediary between the GLTF data and Godot's nodes, and it's abstracted in a way that allows adding support for different GLTF physics extensions in the future.

var Nil Instance

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

func New

func New() Instance

func (Instance) AsGLTFPhysicsShape

func (self Instance) AsGLTFPhysicsShape() 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) Height

func (self Instance) Height() Float.X

func (Instance) ImporterMesh

func (self Instance) ImporterMesh() [1]gdclass.ImporterMesh

func (Instance) IsTrigger

func (self Instance) IsTrigger() bool

func (Instance) MeshIndex

func (self Instance) MeshIndex() int

func (Instance) Radius

func (self Instance) Radius() Float.X

func (Instance) SetHeight

func (self Instance) SetHeight(value Float.X)

func (Instance) SetImporterMesh

func (self Instance) SetImporterMesh(value [1]gdclass.ImporterMesh)

func (Instance) SetIsTrigger

func (self Instance) SetIsTrigger(value bool)

func (Instance) SetMeshIndex

func (self Instance) SetMeshIndex(value int)

func (Instance) SetRadius

func (self Instance) SetRadius(value Float.X)

func (Instance) SetShapeType

func (self Instance) SetShapeType(value string)

func (Instance) SetSize

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

func (Instance) ShapeType

func (self Instance) ShapeType() string

func (Instance) Size

func (self Instance) Size() Vector3.XYZ

func (Instance) ToDictionary

func (self Instance) ToDictionary() Structure

Serializes this GLTFPhysicsShape instance into a [Dictionary] in the format defined by [code]OMI_physics_shape[/code].

func (Instance) ToNode

func (self Instance) ToNode() [1]gdclass.CollisionShape3D

Converts this GLTFPhysicsShape instance into a Godot [CollisionShape3D] node.

func (Instance) ToResource

func (self Instance) ToResource() [1]gdclass.Shape3D

Converts this GLTFPhysicsShape instance into a Godot [Shape3D] resource.

func (*Instance) UnsafePointer

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

func (Instance) Virtual

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

type Structure

type Structure map[interface{}]interface{}

Jump to

Keyboard shortcuts

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