GLTFPhysicsBody

package
v0.0.0-...-e9402f6 Latest Latest
Warning

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

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

Documentation

Overview

Package GLTFPhysicsBody provides methods for working with GLTFPhysicsBody object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromDictionary

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

Creates a new GLTFPhysicsBody instance by parsing the given [Dictionary] in the [code]OMI_physics_body[/code] GLTF extension format.

func FromNode

func FromNode(body_node [1]gdclass.CollisionObject3D) [1]gdclass.GLTFPhysicsBody

Creates a new GLTFPhysicsBody instance from the given Godot [CollisionObject3D] node.

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

type Instance

type Instance [1]gdclass.GLTFPhysicsBody

Represents a physics body as an intermediary between the [code]OMI_physics_body[/code] 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) AngularVelocity

func (self Instance) AngularVelocity() Vector3.XYZ

func (Instance) AsGLTFPhysicsBody

func (self Instance) AsGLTFPhysicsBody() 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) BodyType

func (self Instance) BodyType() string

func (Instance) CenterOfMass

func (self Instance) CenterOfMass() Vector3.XYZ

func (Instance) InertiaDiagonal

func (self Instance) InertiaDiagonal() Vector3.XYZ

func (Instance) InertiaOrientation

func (self Instance) InertiaOrientation() Quaternion.IJKX

func (Instance) InertiaTensor

func (self Instance) InertiaTensor() Basis.XYZ

func (Instance) LinearVelocity

func (self Instance) LinearVelocity() Vector3.XYZ

func (Instance) Mass

func (self Instance) Mass() Float.X

func (Instance) SetAngularVelocity

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

func (Instance) SetBodyType

func (self Instance) SetBodyType(value string)

func (Instance) SetCenterOfMass

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

func (Instance) SetInertiaDiagonal

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

func (Instance) SetInertiaOrientation

func (self Instance) SetInertiaOrientation(value Quaternion.IJKX)

func (Instance) SetInertiaTensor

func (self Instance) SetInertiaTensor(value Basis.XYZ)

func (Instance) SetLinearVelocity

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

func (Instance) SetMass

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

func (Instance) ToDictionary

func (self Instance) ToDictionary() Structure

Serializes this GLTFPhysicsBody instance into a [Dictionary]. It will be in the format expected by the [code]OMI_physics_body[/code] GLTF extension.

func (Instance) ToNode

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

Converts this GLTFPhysicsBody instance into a Godot [CollisionObject3D] node.

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