Documentation ¶
Overview ¶
Package GLTFPhysicsShape provides methods for working with GLTFPhysicsShape object instances.
Index ¶
- func FromDictionary(dictionary Structure) [1]gdclass.GLTFPhysicsShape
- func FromNode(shape_node [1]gdclass.CollisionShape3D) [1]gdclass.GLTFPhysicsShape
- func FromResource(shape_resource [1]gdclass.Shape3D) [1]gdclass.GLTFPhysicsShape
- type Advanced
- type Any
- type Instance
- func (self Instance) AsGLTFPhysicsShape() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) Height() Float.X
- func (self Instance) ImporterMesh() [1]gdclass.ImporterMesh
- func (self Instance) IsTrigger() bool
- func (self Instance) MeshIndex() int
- func (self Instance) Radius() Float.X
- func (self Instance) SetHeight(value Float.X)
- func (self Instance) SetImporterMesh(value [1]gdclass.ImporterMesh)
- func (self Instance) SetIsTrigger(value bool)
- func (self Instance) SetMeshIndex(value int)
- func (self Instance) SetRadius(value Float.X)
- func (self Instance) SetShapeType(value string)
- func (self Instance) SetSize(value Vector3.XYZ)
- func (self Instance) ShapeType() string
- func (self Instance) Size() Vector3.XYZ
- func (self Instance) ToDictionary() Structure
- func (self Instance) ToNode() [1]gdclass.CollisionShape3D
- func (self Instance) ToResource() [1]gdclass.Shape3D
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type Structure
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 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 (Instance) AsGLTFPhysicsShape ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) ImporterMesh ¶
func (self Instance) ImporterMesh() [1]gdclass.ImporterMesh
func (Instance) SetImporterMesh ¶
func (self Instance) SetImporterMesh(value [1]gdclass.ImporterMesh)
func (Instance) SetIsTrigger ¶
func (Instance) SetMeshIndex ¶
func (Instance) SetShapeType ¶
func (Instance) ToDictionary ¶
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 ¶
Converts this GLTFPhysicsShape instance into a Godot [Shape3D] resource.