class_joint2d - dragonsoulz/godot GitHub Wiki

Joint2D

####Inherits: Node2D ####Category: Core

Brief Description

Base node for all joint constraints in 2D phyisics.

Member Functions

Description

Base node for all joint constraints in 2D phyisics. Joints take 2 bodies and apply a custom constraint.

Member Function Description

set_node_a

Set the path to the A node for the joint. Must be of type PhysicsBody2D.

get_node_a

Return the path to the A node for the joint.

set_node_b

Set the path to the B node for the joint. Must be of type PhysicsBody2D.

get_node_b

Return the path to the B node for the joint.