Table of Contents

Class ConeTwistJoint3D

A physics joint that connects two 3D physics bodies in a way that simulates a ball-and-socket joint.

Inheritance
ConeTwistJoint3D

Remarks

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.

Properties

bias

The speed with which the swing or twist will take place.

The higher, the faster.

var bias : float = 0.3

Property Value

float

Remarks

relaxation

Defines, how fast the swing- and twist-speed-difference on both sides gets synced.

var relaxation : float = 1.0

Property Value

float

Remarks

softness

The ease with which the joint starts to twist. If it's too low, it takes more force to start twisting the joint.

var softness : float = 0.8

Property Value

float

Remarks

swing_span

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.

var swing_span : float = 0.785398

Property Value

float

Remarks

twist_span

Twist is the rotation around the twist axis, this value defined how far the joint can twist.

Twist is locked if below 0.05.

var twist_span : float = 3.14159

Property Value

float

Remarks

Methods

get_param(int)

Qualifiers: const

Returns the value of the specified parameter.

float get_param(int param)

Parameters

param int

set_param(int, float)

Sets the value of the specified parameter.

void set_param(int param, float value)

Parameters

param int
value float