Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

Joint3D

继承: Node3D < Node < Object

派生: ConeTwistJoint3D, Generic6DOFJoint3D, HingeJoint3D, PinJoint3D, SliderJoint3D

所有 3D 物理关节的抽象基类。

描述

3D 物理中所有关节的抽象基类。3D 关节能够将两个物理体绑定在一起并施加约束。

教程

属性

bool

exclude_nodes_from_collision

true

NodePath

node_a

NodePath("")

NodePath

node_b

NodePath("")

int

solver_priority

1

方法

RID

get_rid ( ) const


属性说明

bool exclude_nodes_from_collision = true

  • void set_exclude_nodes_from_collision ( bool value )

  • bool get_exclude_nodes_from_collision ( )

如果为 true,则节点的两个主体无法相互碰撞。


NodePath node_a = NodePath("")

连接到关节第一侧(A)的节点。


NodePath node_b = NodePath("")

连接到关节第二侧(B)的节点。


int solver_priority = 1

  • void set_solver_priority ( int value )

  • int get_solver_priority ( )

用于定义哪个解算器在多个关节中被首先执行的优先级。数值越低,优先级越高。


方法说明

RID get_rid ( ) const

返回关节的 RID