A physics joint that allows for complex movement and rotation between two 3D physics bodies.
The Generic6DOFJoint3D (6 Degrees Of Freedom) joint allows for implementing custom types of joints by locking the rotation and translation of certain axes.
The first 3 DOF represent the linear motion of the physics bodies and the last 3 DOF represent the angular motion of the physics bodies. Each axis can be either locked, or limited.
The amount of rotational damping across the X axis.
The lower, the longer an impulse from one side takes to travel to the other side.
When rotating across the X axis, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
When rotating across the Y axis, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
When rotating across the Z axis, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
If true, then there is a linear motor on the X axis. It will attempt to reach the target velocity while staying within the force limits.
The maximum force the linear motor can apply on the X axis while trying to reach the target velocity.
If true, then there is a linear motor on the Y axis. It will attempt to reach the target velocity while staying within the force limits.
The maximum force the linear motor can apply on the Y axis while trying to reach the target velocity.
If true, then there is a linear motor on the Z axis. It will attempt to reach the target velocity while staying within the force limits.
The maximum force the linear motor can apply on the Z axis while trying to reach the target velocity.
PARAM_LINEAR_LOWER_LIMIT = 0The minimum difference between the pivot points' axes.
PARAM_LINEAR_UPPER_LIMIT = 1The maximum difference between the pivot points' axes.
PARAM_LINEAR_LIMIT_SOFTNESS = 2A factor applied to the movement across the axes. The lower, the slower the movement.
PARAM_LINEAR_RESTITUTION = 3The amount of restitution on the axes' movement. The lower, the more momentum gets lost.
PARAM_LINEAR_DAMPING = 4The amount of damping that happens at the linear motion across the axes.
PARAM_LINEAR_MOTOR_TARGET_VELOCITY = 5The velocity the linear motor will try to reach.
PARAM_LINEAR_MOTOR_FORCE_LIMIT = 6The maximum force the linear motor will apply while trying to reach the velocity target.
PARAM_LINEAR_SPRING_STIFFNESS = 7PARAM_LINEAR_SPRING_DAMPING = 8PARAM_LINEAR_SPRING_EQUILIBRIUM_POINT = 9PARAM_ANGULAR_LOWER_LIMIT = 10The minimum rotation in negative direction to break loose and rotate around the axes.
PARAM_ANGULAR_UPPER_LIMIT = 11The minimum rotation in positive direction to break loose and rotate around the axes.
PARAM_ANGULAR_LIMIT_SOFTNESS = 12The speed of all rotations across the axes.
PARAM_ANGULAR_DAMPING = 13The amount of rotational damping across the axes. The lower, the more damping occurs.
PARAM_ANGULAR_RESTITUTION = 14The amount of rotational restitution across the axes. The lower, the more restitution occurs.
PARAM_ANGULAR_FORCE_LIMIT = 15The maximum amount of force that can occur, when rotating around the axes.
PARAM_ANGULAR_ERP = 16When rotating across the axes, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
PARAM_ANGULAR_MOTOR_TARGET_VELOCITY = 17Target speed for the motor at the axes.
PARAM_ANGULAR_MOTOR_FORCE_LIMIT = 18Maximum acceleration for the motor at the axes.
PARAM_ANGULAR_SPRING_STIFFNESS = 19PARAM_ANGULAR_SPRING_DAMPING = 20PARAM_ANGULAR_SPRING_EQUILIBRIUM_POINT = 21PARAM_MAX = 22Represents the size of the Param enum.
FLAG_ENABLE_LINEAR_LIMIT = 0If enabled, linear motion is possible within the given limits.
FLAG_ENABLE_ANGULAR_LIMIT = 1If enabled, rotational motion is possible within the given limits.
FLAG_ENABLE_LINEAR_SPRING = 3FLAG_ENABLE_ANGULAR_SPRING = 2FLAG_ENABLE_MOTOR = 4If enabled, there is a rotational motor across these axes.
FLAG_ENABLE_LINEAR_MOTOR = 5If enabled, there is a linear motor across these axes.
FLAG_MAX = 6Represents the size of the Flag enum.