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...
Generic6DOFJoint3D¶
Inherits: Joint3D < Node3D < Node < Object
The generic 6-degrees-of-freedom joint can implement a variety of joint types by locking certain axes' rotation or translation.
Description¶
The first 3 DOF axes are linear axes, which represent translation of Bodies, and the latter 3 DOF axes represent the angular motion. Each axis can be either locked, or limited.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
get_flag_x ( Flag flag ) const |
|
get_flag_y ( Flag flag ) const |
|
get_flag_z ( Flag flag ) const |
|
get_param_x ( Param param ) const |
|
get_param_y ( Param param ) const |
|
get_param_z ( Param param ) const |
|
void |
set_flag_x ( Flag flag, bool value ) |
void |
set_flag_y ( Flag flag, bool value ) |
void |
set_flag_z ( Flag flag, bool value ) |
void |
set_param_x ( Param param, float value ) |
void |
set_param_y ( Param param, float value ) |
void |
set_param_z ( Param param, float value ) |
Enumerations¶
enum Param:
Param PARAM_LINEAR_LOWER_LIMIT = 0
The minimum difference between the pivot points' axes.
Param PARAM_LINEAR_UPPER_LIMIT = 1
The maximum difference between the pivot points' axes.
Param PARAM_LINEAR_LIMIT_SOFTNESS = 2
A factor applied to the movement across the axes. The lower, the slower the movement.
Param PARAM_LINEAR_RESTITUTION = 3
The amount of restitution on the axes' movement. The lower, the more momentum gets lost.
Param PARAM_LINEAR_DAMPING = 4
The amount of damping that happens at the linear motion across the axes.