summaryrefslogtreecommitdiff
path: root/doc/classes/Joint2D.xml
blob: 63d083d470d1ca816e51370d0803f32dc2f1bb6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8" ?>
<class name="Joint2D" inherits="Node2D" category="Core" version="3.2">
	<brief_description>
		Base node for all joint constraints in 2D physics.
	</brief_description>
	<description>
		Base node for all joint constraints in 2D physics. Joints take 2 bodies and apply a custom constraint.
	</description>
	<tutorials>
	</tutorials>
	<methods>
	</methods>
	<members>
		<member name="bias" type="float" setter="set_bias" getter="get_bias" default="0.0">
			When [member node_a] and [member node_b] move in different directions the [code]bias[/code] controls how fast the joint pulls them back to their original position. The lower the [code]bias[/code] the more the two bodies can pull on the joint.
		</member>
		<member name="disable_collision" type="bool" setter="set_exclude_nodes_from_collision" getter="get_exclude_nodes_from_collision" default="true">
			If [code]true[/code], [member node_a] and [member node_b] can collide.
		</member>
		<member name="node_a" type="NodePath" setter="set_node_a" getter="get_node_a" default="NodePath(&quot;&quot;)">
			The first body attached to the joint. Must derive from [PhysicsBody2D].
		</member>
		<member name="node_b" type="NodePath" setter="set_node_b" getter="get_node_b" default="NodePath(&quot;&quot;)">
			The second body attached to the joint. Must derive from [PhysicsBody2D].
		</member>
	</members>
	<constants>
	</constants>
</class>