Joint

Inherits: Spatial < Node < Object

Inherited By: ConeTwistJoint, Generic6DOFJoint, HingeJoint, PinJoint, SliderJoint

所有3D关节的基类。

描述

关节用于将两个物理体结合在一起。它们具有解算器优先级,可以定义两个附加节点的主体是否能够相互碰撞。

教程

属性

bool

collision/exclude_nodes

true

NodePath

nodes/node_a

NodePath(“”)

NodePath

nodes/node_b

NodePath(“”)

int

solver/priority

1

属性说明

  • bool collision/exclude_nodes

Default

true

Setter

set_exclude_nodes_from_collision(value)

Getter

get_exclude_nodes_from_collision()

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


Default

NodePath(“”)

Setter

set_node_a(value)

Getter

get_node_a()

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


Default

NodePath(“”)

Setter

set_node_b(value)

Getter

get_node_b()

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


  • int solver/priority

Default

1

Setter

set_solver_priority(value)

Getter

get_solver_priority()

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