PhysicalBone3D

package
v0.0.0-...-5fa07e4 Latest Latest
Warning

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

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

Documentation

Overview

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

type DampMode

type DampMode = gdclass.PhysicalBone3DDampMode //gd:PhysicalBone3D.DampMode
const (
	/*In this mode, the body's damping value is added to any value set in areas or the default value.*/
	DampModeCombine DampMode = 0
	/*In this mode, the body's damping value replaces any value set in areas or the default value.*/
	DampModeReplace DampMode = 1
)

type Implementation

type Implementation = implementation

Implementation implements Interface with empty methods.

type Instance

type Instance [1]gdclass.PhysicalBone3D

The [PhysicalBone3D] node is a physics body that can be used to make bones in a [Skeleton3D] react to physics. [b]Note:[/b] In order to detect physical bones with raycasts, the [member SkeletonModifier3D.active] property of the parent [PhysicalBoneSimulator3D] must be [code]true[/code] and the [Skeleton3D]'s bone must be assigned to [PhysicalBone3D] correctly; it means that [method get_bone_id] should return a valid id ([code]>= 0[/code]).

See [Interface] for methods that can be overridden by a [Class] that extends it.

%!(EXTRA string=PhysicalBone3D)

var Nil Instance

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

func New

func New() Instance

func (Instance) AngularDamp

func (self Instance) AngularDamp() Float.X

func (Instance) AngularDampMode

func (self Instance) AngularDampMode() gdclass.PhysicalBone3DDampMode

func (Instance) AngularVelocity

func (self Instance) AngularVelocity() Vector3.XYZ

func (Instance) ApplyCentralImpulse

func (self Instance) ApplyCentralImpulse(impulse Vector3.XYZ)

func (Instance) ApplyImpulse

func (self Instance) ApplyImpulse(impulse Vector3.XYZ)

func (Instance) AsCollisionObject3D

func (self Instance) AsCollisionObject3D() CollisionObject3D.Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsNode3D

func (self Instance) AsNode3D() Node3D.Instance

func (Instance) AsObject

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

func (Instance) AsPhysicalBone3D

func (self Instance) AsPhysicalBone3D() Instance

func (Instance) AsPhysicsBody3D

func (self Instance) AsPhysicsBody3D() PhysicsBody3D.Instance

func (Instance) BodyOffset

func (self Instance) BodyOffset() Transform3D.BasisOrigin

func (Instance) Bounce

func (self Instance) Bounce() Float.X

func (Instance) CanSleep

func (self Instance) CanSleep() bool

func (Instance) CustomIntegrator

func (self Instance) CustomIntegrator() bool

func (Instance) Friction

func (self Instance) Friction() Float.X

func (Instance) GetBoneId

func (self Instance) GetBoneId() int

func (Instance) GetSimulatePhysics

func (self Instance) GetSimulatePhysics() bool

func (Instance) GravityScale

func (self Instance) GravityScale() Float.X

func (Instance) IsSimulatingPhysics

func (self Instance) IsSimulatingPhysics() bool

func (Instance) JointOffset

func (self Instance) JointOffset() Transform3D.BasisOrigin

func (Instance) JointRotation

func (self Instance) JointRotation() Vector3.XYZ

func (Instance) JointType

func (self Instance) JointType() gdclass.PhysicalBone3DJointType

func (Instance) LinearDamp

func (self Instance) LinearDamp() Float.X

func (Instance) LinearDampMode

func (self Instance) LinearDampMode() gdclass.PhysicalBone3DDampMode

func (Instance) LinearVelocity

func (self Instance) LinearVelocity() Vector3.XYZ

func (Instance) Mass

func (self Instance) Mass() Float.X

func (Instance) SetAngularDamp

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

func (Instance) SetAngularDampMode

func (self Instance) SetAngularDampMode(value gdclass.PhysicalBone3DDampMode)

func (Instance) SetAngularVelocity

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

func (Instance) SetBodyOffset

func (self Instance) SetBodyOffset(value Transform3D.BasisOrigin)

func (Instance) SetBounce

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

func (Instance) SetCanSleep

func (self Instance) SetCanSleep(value bool)

func (Instance) SetCustomIntegrator

func (self Instance) SetCustomIntegrator(value bool)

func (Instance) SetFriction

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

func (Instance) SetGravityScale

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

func (Instance) SetJointOffset

func (self Instance) SetJointOffset(value Transform3D.BasisOrigin)

func (Instance) SetJointRotation

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

func (Instance) SetJointType

func (self Instance) SetJointType(value gdclass.PhysicalBone3DJointType)

func (Instance) SetLinearDamp

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

func (Instance) SetLinearDampMode

func (self Instance) SetLinearDampMode(value gdclass.PhysicalBone3DDampMode)

func (Instance) SetLinearVelocity

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

func (Instance) SetMass

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

func (*Instance) UnsafePointer

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

func (Instance) Virtual

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

type Interface

type Interface interface {
	//Called during physics processing, allowing you to read and safely modify the simulation state for the object. By default, it is called before the standard force integration, but the [member custom_integrator] property allows you to disable the standard force integration and do fully custom force integration for a body.
	IntegrateForces(state [1]gdclass.PhysicsDirectBodyState3D)
}

type JointType

type JointType = gdclass.PhysicalBone3DJointType //gd:PhysicalBone3D.JointType
const (
	JointTypeNone   JointType = 0
	JointTypePin    JointType = 1
	JointTypeCone   JointType = 2
	JointTypeHinge  JointType = 3
	JointTypeSlider JointType = 4
	JointType6dof   JointType = 5
)

Jump to

Keyboard shortcuts

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