godot / 2.1.6 / classes / class_joint2d.html /

Joint2D

Inherits: Node2D < CanvasItem < Node < Object

Inherited By: PinJoint2D, DampedSpringJoint2D, GrooveJoint2D

Category: Core

Brief Description

Base node for all joint constraints in 2D physics.

Member Functions

float get_bias ( ) const
bool get_exclude_nodes_from_collision ( ) const
NodePath get_node_a ( ) const
NodePath get_node_b ( ) const
void set_bias ( float bias )
void set_exclude_nodes_from_collision ( bool enable )
void set_node_a ( NodePath node )
void set_node_b ( NodePath node )

Description

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

Member Function Description

float get_bias ( ) const

bool get_exclude_nodes_from_collision ( ) const

NodePath get_node_a ( ) const

Return the path to the A node for the joint.

NodePath get_node_b ( ) const

Return the path to the B node for the joint.

void set_bias ( float bias )

void set_exclude_nodes_from_collision ( bool enable )

void set_node_a ( NodePath node )

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

void set_node_b ( NodePath node )

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

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_joint2d.html