Documentation
¶
Overview ¶
Package GLTFPhysicsBody provides methods for working with GLTFPhysicsBody object instances.
Index ¶
- func FromDictionary(dictionary Structure) [1]gdclass.GLTFPhysicsBody
- func FromNode(body_node [1]gdclass.CollisionObject3D) [1]gdclass.GLTFPhysicsBody
- type Advanced
- type Any
- type Instance
- func (self Instance) AngularVelocity() Vector3.XYZ
- func (self Instance) AsGLTFPhysicsBody() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) BodyType() string
- func (self Instance) CenterOfMass() Vector3.XYZ
- func (self Instance) InertiaDiagonal() Vector3.XYZ
- func (self Instance) InertiaOrientation() Quaternion.IJKX
- func (self Instance) InertiaTensor() Basis.XYZ
- func (self Instance) LinearVelocity() Vector3.XYZ
- func (self Instance) Mass() Float.X
- func (self Instance) SetAngularVelocity(value Vector3.XYZ)
- func (self Instance) SetBodyType(value string)
- func (self Instance) SetCenterOfMass(value Vector3.XYZ)
- func (self Instance) SetInertiaDiagonal(value Vector3.XYZ)
- func (self Instance) SetInertiaOrientation(value Quaternion.IJKX)
- func (self Instance) SetInertiaTensor(value Basis.XYZ)
- func (self Instance) SetLinearVelocity(value Vector3.XYZ)
- func (self Instance) SetMass(value Float.X)
- func (self Instance) ToDictionary() Structure
- func (self Instance) ToNode() [1]gdclass.CollisionObject3D
- 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.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 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 (Instance) AngularVelocity ¶
func (Instance) AsGLTFPhysicsBody ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) CenterOfMass ¶
func (Instance) InertiaDiagonal ¶
func (Instance) InertiaOrientation ¶
func (self Instance) InertiaOrientation() Quaternion.IJKX
func (Instance) InertiaTensor ¶
func (Instance) LinearVelocity ¶
func (Instance) SetAngularVelocity ¶
func (Instance) SetBodyType ¶
func (Instance) SetCenterOfMass ¶
func (Instance) SetInertiaDiagonal ¶
func (Instance) SetInertiaOrientation ¶
func (self Instance) SetInertiaOrientation(value Quaternion.IJKX)
func (Instance) SetInertiaTensor ¶
func (Instance) SetLinearVelocity ¶
func (Instance) ToDictionary ¶
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.