Table of Contents

Class Joint3D

Abstract base class for all 3D physics joints.

Inheritance
Joint3D
Derived

Remarks

Abstract base class for all joints in 3D physics. 3D joints bind together two physics bodies (node_a and node_b) and apply a constraint. If only one body is defined, it is attached to a fixed StaticBody3D without collision shapes.

See Also

Properties

exclude_nodes_from_collision

If true, the two bodies bound together do not collide with each other.

var exclude_nodes_from_collision : bool = true

Property Value

bool

Remarks

  • void set_exclude_nodes_from_collision(bool value)
  • bool get_exclude_nodes_from_collision

node_a

Path to the first node (A) attached to the joint. The node must inherit PhysicsBody3D.

If left empty and node_b is set, the body is attached to a fixed StaticBody3D without collision shapes.

var node_a : NodePath = NodePath("")

Property Value

NodePath

Remarks

node_b

Path to the second node (B) attached to the joint. The node must inherit PhysicsBody3D.

If left empty and node_a is set, the body is attached to a fixed StaticBody3D without collision shapes.

var node_b : NodePath = NodePath("")

Property Value

NodePath

Remarks

solver_priority

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

var solver_priority : int = 1

Property Value

int

Remarks

  • void set_solver_priority(int value)
  • int get_solver_priority

Methods

get_rid

Qualifiers: const

Returns the joint's internal RID from the PhysicsServer3D.

RID get_rid