ConeTwistJoint3D

Hereda: Joint3D < Node3D < Node < Object

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

Descripción

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.

Propiedades

float

bias

0.3

float

relaxation

1.0

float

softness

0.8

float

swing_span

0.7853982

float

twist_span

3.1415927

Métodos

float

get_param(param: Param) const

void

set_param(param: Param, value: float)


Enumeraciones

enum Param: 🔗

Param PARAM_SWING_SPAN = 0

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.

Param PARAM_TWIST_SPAN = 1

La torsión es la rotación alrededor del eje de la torsión, este valor definió cuán lejos puede torcerse la articulación.

La torsión se bloquea si está por debajo de 0,05.

Param PARAM_BIAS = 2

La velocidad con la que se producirá la oscilación o la torsión.

Cuanto más alto, más rápido.

Param PARAM_SOFTNESS = 3

La facilidad con la que la articulación comienza a girar. Si es demasiado baja, se necesita más fuerza para empezar a torcer la articulación.

Param PARAM_RELAXATION = 4

Define cuán rápido se sincroniza la diferencia de velocidad de giro en ambos lados.

Param PARAM_MAX = 5

Representa el tamaño del enum Param.


Descripciones de Propiedades

float bias = 0.3 🔗

La velocidad con la que se producirá la oscilación o la torsión.

Cuanto más alto, más rápido.


float relaxation = 1.0 🔗

Define cuán rápido se sincroniza la diferencia de velocidad de giro en ambos lados.


float softness = 0.8 🔗

La facilidad con la que la articulación comienza a girar. Si es demasiado baja, se necesita más fuerza para empezar a torcer la articulación.


float swing_span = 0.7853982 🔗

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.


float twist_span = 3.1415927 🔗

La torsión es la rotación alrededor del eje de la torsión, este valor definió cuán lejos puede torcerse la articulación.

La torsión se bloquea si está por debajo de 0,05.


Descripciones de Métodos

float get_param(param: Param) const 🔗

Devuelve el valor del parámetro especificado.


void set_param(param: Param, value: float) 🔗

Establece el valor del parámetro especificado.