ConeTwistJoint3D

package
v0.0.0-...-660914d Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

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

type Instance

type Instance [1]gdclass.ConeTwistJoint3D

A physics joint that connects two 3D physics bodies in a way that simulates a ball-and-socket joint. The twist axis is initiated as the X axis of the [ConeTwistJoint3D]. Once the physics bodies swing, the twist axis is calculated as the middle of the X axes of the joint in the local space of the two physics bodies. Useful for limbs like shoulders and hips, lamps hanging off a ceiling, etc.

var Nil Instance

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

func New

func New() Instance

func (Instance) AsConeTwistJoint3D

func (self Instance) AsConeTwistJoint3D() Instance

func (Instance) AsJoint3D

func (self Instance) AsJoint3D() Joint3D.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) Bias

func (self Instance) Bias() Float.X

func (Instance) Relaxation

func (self Instance) Relaxation() Float.X

func (Instance) SetBias

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

func (Instance) SetRelaxation

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

func (Instance) SetSoftness

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

func (Instance) SetSwingSpan

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

func (Instance) SetTwistSpan

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

func (Instance) Softness

func (self Instance) Softness() Float.X

func (Instance) SwingSpan

func (self Instance) SwingSpan() Float.X

func (Instance) TwistSpan

func (self Instance) TwistSpan() Float.X

func (*Instance) UnsafePointer

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

func (Instance) Virtual

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

type Param

type Param = gdclass.ConeTwistJoint3DParam //gd:ConeTwistJoint3D.Param
const (
	/*Swing is rotation from side to side, around the axis perpendicular to the twist axis.
	  The swing span defines, how much rotation will not get corrected along the swing axis.
	  Could be defined as looseness in the [ConeTwistJoint3D].
	  If below 0.05, this behavior is locked.*/
	ParamSwingSpan Param = 0
	/*Twist is the rotation around the twist axis, this value defined how far the joint can twist.
	  Twist is locked if below 0.05.*/
	ParamTwistSpan Param = 1
	/*The speed with which the swing or twist will take place.
	  The higher, the faster.*/
	ParamBias Param = 2
	/*The ease with which the joint starts to twist. If it's too low, it takes more force to start twisting the joint.*/
	ParamSoftness Param = 3
	/*Defines, how fast the swing- and twist-speed-difference on both sides gets synced.*/
	ParamRelaxation Param = 4
	/*Represents the size of the [enum Param] enum.*/
	ParamMax Param = 5
)

Jump to

Keyboard shortcuts

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