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¶
|
||
|
||
|
||
|
||
|
Métodos¶
void |
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¶
float bias
Default |
|
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.
float relaxation
Default |
|
Setter |
set_param(value) |
Getter |
get_param() |
Define cuán rápido se sincroniza la diferencia de velocidad de giro en ambos lados.
float softness
Default |
|
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.
float swing_span
Default |
|
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.
float twist_span
Default |
|
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.