ConeTwistJoint

Inherits: Joint < Spatial < Node < Object

A twist joint between two 3D PhysicsBodies.

Descripción

The joint can rotate the bodies across an axis defined by the local x-axes of the Joint.

The twist axis is initiated as the X axis of the Joint.

Once the Bodies swing, the twist axis is calculated as the middle of the x-axes of the Joint in the local space of the two Bodies. See also Generic6DOFJoint.

Propiedades

float

bias

0.3

float

relaxation

1.0

float

softness

0.8

float

swing_span

45.0

float

twist_span

180.0

Métodos

float

get_param ( Param param ) const

void

set_param ( Param param, float value )

Enumeraciones

enum 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 ConeTwistJoint.

If below 0.05, this behavior is locked.

  • 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_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_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_RELAXATION = 4 --- Define cuán rápido se sincroniza la diferencia de velocidad de giro en ambos lados.

  • PARAM_MAX = 5 --- Representa el tamaño del enum Param.

Descripciones de Propiedades

Default

0.3

Setter

set_param(value)

Getter

get_param()

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

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


Default

1.0

Setter

set_param(value)

Getter

get_param()

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


Default

0.8

Setter

set_param(value)

Getter

get_param()

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.


Default

45.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 ConeTwistJoint.

If below 0.05, this behavior is locked.


Default

180.0

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