Skip to content
0.2.0-dev Download ZIP
50 lines ·2.3 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="PinJoint3D" inherits="Joint3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A physics joint that attaches two 3D physics bodies at a single point, allowing them to freely rotate.
5 </brief_description>
6 <description>
7 A physics joint that attaches two 3D physics bodies at a single point, allowing them to freely rotate. For example, a [RigidBody3D] can be attached to a [StaticBody3D] to create a pendulum or a seesaw.
8 </description>
9 <tutorials>
10 </tutorials>
11 <methods>
12 <method name="get_param" qualifiers="const">
13 <return type="float" />
14 <param index="0" name="param" type="int" enum="PinJoint3D.Param" />
15 <description>
16 Returns the value of the specified parameter.
17 </description>
18 </method>
19 <method name="set_param">
20 <return type="void" />
21 <param index="0" name="param" type="int" enum="PinJoint3D.Param" />
22 <param index="1" name="value" type="float" />
23 <description>
24 Sets the value of the specified parameter.
25 </description>
26 </method>
27 </methods>
28 <members>
29 <member name="params/bias" type="float" setter="set_param" getter="get_param" default="0.3">
30 The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.
31 </member>
32 <member name="params/damping" type="float" setter="set_param" getter="get_param" default="1.0">
33 The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.
34 </member>
35 <member name="params/impulse_clamp" type="float" setter="set_param" getter="get_param" default="0.0">
36 If above 0, this value is the maximum value for an impulse that this Joint3D produces.
37 </member>
38 </members>
39 <constants>
40 <constant name="PARAM_BIAS" value="0" enum="Param">
41 The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.
42 </constant>
43 <constant name="PARAM_DAMPING" value="1" enum="Param">
44 The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.
45 </constant>
46 <constant name="PARAM_IMPULSE_CLAMP" value="2" enum="Param">
47 If above 0, this value is the maximum value for an impulse that this Joint3D produces.
48 </constant>
49 </constants>
50</class>