Documentation
¶
Overview ¶
A physics joint that restricts the rotation of a 3D physics body around an axis relative to another physics body. For example, Body A can be a graphics.gd/classdb/StaticBody3D representing a door hinge that a graphics.gd/classdb/RigidBody3D rotates around.
Index ¶
- type Advanced
- type Any
- type Extension
- type Flag
- type ID
- type Instance
- func (self Instance) AsHingeJoint3D() 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) GetFlag(flag Flag) bool
- func (self Instance) GetParam(param Param) Float.X
- func (self Instance) ID() ID
- func (self Instance) SetFlag(flag Flag, enabled bool)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetParam(param Param, value 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]) AsHingeJoint3D ¶
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.HingeJoint3D
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsHingeJoint3D ¶
type Param ¶
type Param int //gd:HingeJoint3D.Param
const ( // The speed with which the two bodies get pulled together when they move in different directions. ParamBias Param = 0 // The maximum rotation. Only active if "angular_limit/enable" is true. ParamLimitUpper Param = 1 // The minimum rotation. Only active if "angular_limit/enable" is true. ParamLimitLower Param = 2 // The speed with which the rotation across the axis perpendicular to the hinge gets corrected. ParamLimitBias Param = 3 ParamLimitSoftness Param = 4 // The lower this value, the more the rotation gets slowed down. ParamLimitRelaxation Param = 5 // Target speed for the motor. ParamMotorTargetVelocity Param = 6 // Maximum acceleration for the motor. ParamMotorMaxImpulse Param = 7 // Represents the size of the [Param] enum. ParamMax Param = 8 )