Documentation
¶
Overview ¶
Package ConeTwistJoint3D provides methods for working with ConeTwistJoint3D object instances.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AsConeTwistJoint3D() Instance
- func (self Instance) AsJoint3D() Joint3D.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode3D() Node3D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) Bias() Float.X
- func (self Instance) ID() ID
- func (self Instance) Relaxation() Float.X
- func (self Instance) SetBias(value Float.X)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetRelaxation(value Float.X)
- func (self Instance) SetSoftness(value Float.X)
- func (self Instance) SetSwingSpan(value Float.X)
- func (self Instance) SetTwistSpan(value Float.X)
- func (self Instance) Softness() Float.X
- func (self Instance) SwingSpan() Float.X
- func (self Instance) TwistSpan() Float.X
- func (self Instance) Virtual(name string) reflect.Value
- type Param
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 Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsConeTwistJoint3D ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
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 (Instance) AsConeTwistJoint3D ¶
func (Instance) Relaxation ¶
func (Instance) SetRelaxation ¶
func (Instance) SetSoftness ¶
func (Instance) SetSwingSpan ¶
func (Instance) SetTwistSpan ¶
type Param ¶
type Param int //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 )