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...
Joint3D
派生: ConeTwistJoint3D, Generic6DOFJoint3D, HingeJoint3D, PinJoint3D, SliderJoint3D
所有 3D 物理关节的抽象基类。
描述
3D 物理中所有关节的抽象基类。3D 关节将两个物理体(node_a 和 node_b)绑定在一起并应用约束。如果仅定义一个物体,则将其附加到固定的 StaticBody3D 上,而没有碰撞形状。
教程
属性
|
||
|
||
|
||
|
方法
get_rid() const |
属性说明
bool exclude_nodes_from_collision = true
🔗
如果为 true
,则绑定在一起的两个物体不会相互碰撞。
NodePath node_a = NodePath("")
🔗
连接到关节的第一个节点(A)的路径。该节点必须继承自 PhysicsBody3D。
如果留空且设置了 node_b,则该物体将连接到固定的 StaticBody3D,且没有碰撞形状。
NodePath node_b = NodePath("")
🔗
连接到关节的第二个节点(B)的路径。该节点必须继承自 PhysicsBody3D。
如果留空且设置了 node_a,则该物体将连接到固定的 StaticBody3D,且没有碰撞形状。
用于定义哪个解算器在多个关节中被首先执行的优先级。数值越低,优先级越高。
方法说明
从 PhysicsServer3D 返回关节的内部 RID。