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.

Joint3D

Успадковує: Node3D < Node < Object

Успадковано від: ConeTwistJoint3D, Generic6DOFJoint3D, HingeJoint3D, PinJoint3D, SliderJoint3D

Абстрактний базовий клас для всіх фізичних суглобів 3D.

Опис

Абстрактний базовий клас для всіх суглобів в 3D фізики. 3D суглоби зв’яжуться разом з двома фізико-фізичними органами (node_a і node_b) і застосуйте обмеження. Якщо визначаються тільки одне тіло, воно кріпиться до фіксованої StaticBody3D без фігур зіткнення.

Посібники

Властивості

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(value: bool)

  • bool get_exclude_nodes_from_collision()

Якщо true, два тіла, які з'єднуються між собою.


NodePath node_a = NodePath("") 🔗

  • void set_node_a(value: NodePath)

  • NodePath get_node_a()

Шлях до першого вузла (A), приєднаного до з'єднання. Вузол має успадковувати PhysicsBody3D.

Якщо залишити порожнім і встановити node_b, тіло приєднується до фіксованого StaticBody3D без колізійних фігур.


NodePath node_b = NodePath("") 🔗

  • void set_node_b(value: NodePath)

  • NodePath get_node_b()

Шлях до другого вузла (B), приєднаного до з'єднання. Вузол має успадковувати PhysicsBody3D.

Якщо залишити порожнім і встановити node_a, тіло приєднується до фіксованого StaticBody3D без колізійних фігур.


int solver_priority = 1 🔗

  • void set_solver_priority(value: int)

  • int get_solver_priority()

The priority used to define which solver is executed first for multiple joints. The lower the value, the higher the priority.

Note: Only supported when using GodotPhysics3D. This property is ignored when using Jolt Physics.


Описи методів

RID get_rid() const 🔗

Повертаємо внутрішній суглоб RID з PhysicsServer3D.