Skip to content
0.2.0-dev Download ZIP
19 lines ·1.1 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="GrooveJoint2D" inherits="Joint2D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A physics joint that restricts the movement of two 2D physics bodies to a fixed axis.
5 </brief_description>
6 <description>
7 A physics joint that restricts the movement of two 2D physics bodies to a fixed axis. For example, a [StaticBody2D] representing a piston base can be attached to a [RigidBody2D] representing the piston head, moving up and down.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="initial_offset" type="float" setter="set_initial_offset" getter="get_initial_offset" default="25.0">
13 The body B's initial anchor position defined by the joint's origin and a local offset [member initial_offset] along the joint's Y axis (along the groove).
14 </member>
15 <member name="length" type="float" setter="set_length" getter="get_length" default="50.0">
16 The groove's length. The groove is from the joint's origin towards [member length] along the joint's local Y axis.
17 </member>
18 </members>
19</class>