|
740 | 740 | <param index="1" name="axis" type="int" enum="Vector3.Axis" /> |
741 | 741 | <param index="2" name="flag" type="int" enum="PhysicsServer3D.G6DOFJointAxisFlag" /> |
742 | 742 | <description> |
743 | | - Gets a generic_6_DOF_joint flag (see [enum G6DOFJointAxisFlag] constants). |
| 743 | + Returns the value of a generic 6DOF joint flag. See [enum G6DOFJointAxisFlag] for the list of available flags. |
744 | 744 | </description> |
745 | 745 | </method> |
746 | 746 | <method name="generic_6dof_joint_get_param" qualifiers="const"> |
|
749 | 749 | <param index="1" name="axis" type="int" enum="Vector3.Axis" /> |
750 | 750 | <param index="2" name="param" type="int" enum="PhysicsServer3D.G6DOFJointAxisParam" /> |
751 | 751 | <description> |
752 | | - Gets a generic_6_DOF_joint parameter (see [enum G6DOFJointAxisParam] constants). |
| 752 | + Returns the value of a generic 6DOF joint parameter. See [enum G6DOFJointAxisParam] for the list of available parameters. |
753 | 753 | </description> |
754 | 754 | </method> |
755 | 755 | <method name="generic_6dof_joint_set_flag"> |
|
759 | 759 | <param index="2" name="flag" type="int" enum="PhysicsServer3D.G6DOFJointAxisFlag" /> |
760 | 760 | <param index="3" name="enable" type="bool" /> |
761 | 761 | <description> |
762 | | - Sets a generic_6_DOF_joint flag (see [enum G6DOFJointAxisFlag] constants). |
| 762 | + Sets the value of a given generic 6DOF joint flag. See [enum G6DOFJointAxisFlag] for the list of available flags. |
763 | 763 | </description> |
764 | 764 | </method> |
765 | 765 | <method name="generic_6dof_joint_set_param"> |
|
769 | 769 | <param index="2" name="param" type="int" enum="PhysicsServer3D.G6DOFJointAxisParam" /> |
770 | 770 | <param index="3" name="value" type="float" /> |
771 | 771 | <description> |
772 | | - Sets a generic_6_DOF_joint parameter (see [enum G6DOFJointAxisParam] constants). |
| 772 | + Sets the value of a given generic 6DOF joint parameter. See [enum G6DOFJointAxisParam] for the list of available parameters. |
773 | 773 | </description> |
774 | 774 | </method> |
775 | 775 | <method name="get_process_info"> |
|
876 | 876 | <param index="3" name="body_B" type="RID" /> |
877 | 877 | <param index="4" name="local_ref_B" type="Transform3D" /> |
878 | 878 | <description> |
| 879 | + Make the joint a generic six degrees of freedom (6DOF) joint. Use [method generic_6dof_joint_set_flag] and [method generic_6dof_joint_set_param] to set the joint's flags and parameters respectively. |
879 | 880 | </description> |
880 | 881 | </method> |
881 | 882 | <method name="joint_make_hinge"> |
|
1497 | 1498 | <constant name="G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT" value="6" enum="G6DOFJointAxisParam"> |
1498 | 1499 | The maximum force that the linear motor can apply while trying to reach the target velocity. |
1499 | 1500 | </constant> |
| 1501 | + <constant name="G6DOF_JOINT_LINEAR_SPRING_STIFFNESS" value="7" enum="G6DOFJointAxisParam"> |
| 1502 | + </constant> |
| 1503 | + <constant name="G6DOF_JOINT_LINEAR_SPRING_DAMPING" value="8" enum="G6DOFJointAxisParam"> |
| 1504 | + </constant> |
| 1505 | + <constant name="G6DOF_JOINT_LINEAR_SPRING_EQUILIBRIUM_POINT" value="9" enum="G6DOFJointAxisParam"> |
| 1506 | + </constant> |
1500 | 1507 | <constant name="G6DOF_JOINT_ANGULAR_LOWER_LIMIT" value="10" enum="G6DOFJointAxisParam"> |
1501 | 1508 | The minimum rotation in negative direction to break loose and rotate around the axes. |
1502 | 1509 | </constant> |
|
1524 | 1531 | <constant name="G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT" value="18" enum="G6DOFJointAxisParam"> |
1525 | 1532 | Maximum acceleration for the motor at the axes. |
1526 | 1533 | </constant> |
| 1534 | + <constant name="G6DOF_JOINT_ANGULAR_SPRING_STIFFNESS" value="19" enum="G6DOFJointAxisParam"> |
| 1535 | + </constant> |
| 1536 | + <constant name="G6DOF_JOINT_ANGULAR_SPRING_DAMPING" value="20" enum="G6DOFJointAxisParam"> |
| 1537 | + </constant> |
| 1538 | + <constant name="G6DOF_JOINT_ANGULAR_SPRING_EQUILIBRIUM_POINT" value="21" enum="G6DOFJointAxisParam"> |
| 1539 | + </constant> |
| 1540 | + <constant name="G6DOF_JOINT_MAX" value="22" enum="G6DOFJointAxisParam"> |
| 1541 | + Represents the size of the [enum G6DOFJointAxisParam] enum. |
| 1542 | + </constant> |
1527 | 1543 | <constant name="G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT" value="0" enum="G6DOFJointAxisFlag"> |
1528 | 1544 | If set, linear motion is possible within the given limits. |
1529 | 1545 | </constant> |
1530 | 1546 | <constant name="G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT" value="1" enum="G6DOFJointAxisFlag"> |
1531 | 1547 | If set, rotational motion is possible. |
1532 | 1548 | </constant> |
| 1549 | + <constant name="G6DOF_JOINT_FLAG_ENABLE_ANGULAR_SPRING" value="2" enum="G6DOFJointAxisFlag"> |
| 1550 | + </constant> |
| 1551 | + <constant name="G6DOF_JOINT_FLAG_ENABLE_LINEAR_SPRING" value="3" enum="G6DOFJointAxisFlag"> |
| 1552 | + </constant> |
1533 | 1553 | <constant name="G6DOF_JOINT_FLAG_ENABLE_MOTOR" value="4" enum="G6DOFJointAxisFlag"> |
1534 | 1554 | If set, there is a rotational motor across these axes. |
1535 | 1555 | </constant> |
1536 | 1556 | <constant name="G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR" value="5" enum="G6DOFJointAxisFlag"> |
1537 | 1557 | If set, there is a linear motor on this axis that targets a specific velocity. |
1538 | 1558 | </constant> |
| 1559 | + <constant name="G6DOF_JOINT_FLAG_MAX" value="6" enum="G6DOFJointAxisFlag"> |
| 1560 | + Represents the size of the [enum G6DOFJointAxisFlag] enum. |
| 1561 | + </constant> |
1539 | 1562 | <constant name="SHAPE_WORLD_BOUNDARY" value="0" enum="ShapeType"> |
1540 | 1563 | The [Shape3D] is a [WorldBoundaryShape3D]. |
1541 | 1564 | </constant> |
|
0 commit comments