Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
HingeJoint¶
Inherits: Joint < Spatial < Node < Object
A hinge between two 3D PhysicsBodies.
Descripción¶
A HingeJoint normally uses the Z axis of body A as the hinge axis, another axis can be specified when adding it manually though. See also Generic6DOFJoint.
Propiedades¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Métodos¶
void |
|
void |
Enumeraciones¶
enum Param:
PARAM_BIAS = 0 --- La velocidad con la que los dos cuerpos se juntan cuando se mueven en diferentes direcciones.
PARAM_LIMIT_UPPER = 1 --- La rotación máxima. Sólo está activa si angular_limit/enable es
true
.PARAM_LIMIT_LOWER = 2 --- La rotación mínima. Sólo está activa si angular_limit/enable es
true
.PARAM_LIMIT_BIAS = 3 --- La velocidad con la que se corrige la rotación a través del eje perpendicular a la bisagra.
PARAM_LIMIT_SOFTNESS = 4
PARAM_LIMIT_RELAXATION = 5 --- Cuanto más bajo es este valor, más se ralentiza la rotación.
PARAM_MOTOR_TARGET_VELOCITY = 6 --- Velocidad objetivo para el motor.
PARAM_MOTOR_MAX_IMPULSE = 7 --- Aceleración máxima para el motor.
PARAM_MAX = 8 --- Representa el tamaño del enum Param.
enum Flag:
FLAG_USE_LIMIT = 0 --- Si
true
, la rotación máxima y mínima de las bisagras, definida por angular_limit/lower y angular_limit/upper tiene efectos.FLAG_ENABLE_MOTOR = 1 --- Cuando se activa, un motor gira la bisagra.
FLAG_MAX = 2 --- Representa el tamaño del enum Flag.
Descripciones de Propiedades¶
float angular_limit/bias
Default |
|
Setter |
set_param(value) |
Getter |
get_param() |
La velocidad con la que se corrige la rotación a través del eje perpendicular a la bisagra.
bool angular_limit/enable
Default |
|
Setter |
set_flag(value) |
Getter |
get_flag() |
Si true
, la rotación máxima y mínima de las bisagras, definida por angular_limit/lower y angular_limit/upper tiene efectos.
float angular_limit/lower
Default |
|
La rotación mínima. Sólo está activa si angular_limit/enable es true
.
float angular_limit/relaxation
Default |
|
Setter |
set_param(value) |
Getter |
get_param() |
Cuanto más bajo es este valor, más se ralentiza la rotación.
float angular_limit/softness
Default |
|
Setter |
set_param(value) |
Getter |
get_param() |
float angular_limit/upper
Default |
|
La rotación máxima. Sólo está activa si angular_limit/enable es true
.
bool motor/enable
Default |
|
Setter |
set_flag(value) |
Getter |
get_flag() |
Cuando se activa, un motor gira la bisagra.
float motor/max_impulse
Default |
|
Setter |
set_param(value) |
Getter |
get_param() |
Aceleración máxima para el motor.
float motor/target_velocity
Default |
|
Setter |
set_param(value) |
Getter |
get_param() |
Velocidad objetivo para el motor.
float params/bias
Default |
|
Setter |
set_param(value) |
Getter |
get_param() |
La velocidad con la que los dos cuerpos se juntan cuando se mueven en diferentes direcciones.
Descripciones de Métodos¶
Devuelve el valor de la flag especificada.
Devuelve el valor del parámetro especificado.
Si true
, activa la flag especificada.
Establece el valor del parámetro especificado.