A physics joint that restricts the rotation of a 3D physics body around an axis relative to another physics body.
A physics joint that restricts the rotation of a 3D physics body around an axis relative to another physics body. For example, Body A can be a StaticBody3D representing a door hinge that a RigidBody3D rotates around.
If true, the hinges maximum and minimum rotation, defined by angular_limit/lower and angular_limit/upper has effects.
The minimum rotation. Only active if angular_limit/enable is true.
The maximum rotation. Only active if angular_limit/enable is true.
PARAM_BIAS = 0The speed with which the two bodies get pulled together when they move in different directions.
PARAM_LIMIT_UPPER = 1The maximum rotation. Only active if angular_limit/enable is true.
PARAM_LIMIT_LOWER = 2The minimum rotation. Only active if angular_limit/enable is true.
PARAM_LIMIT_BIAS = 3The speed with which the rotation across the axis perpendicular to the hinge gets corrected.
PARAM_LIMIT_SOFTNESS = 4PARAM_LIMIT_RELAXATION = 5The lower this value, the more the rotation gets slowed down.
PARAM_MOTOR_TARGET_VELOCITY = 6Target speed for the motor.
PARAM_MOTOR_MAX_IMPULSE = 7Maximum acceleration for the motor.
PARAM_MAX = 8Represents the size of the Param enum.
FLAG_USE_LIMIT = 0If true, the hinges maximum and minimum rotation, defined by angular_limit/lower and angular_limit/upper has effects.
FLAG_ENABLE_MOTOR = 1When activated, a motor turns the hinge.
FLAG_MAX = 2Represents the size of the Flag enum.