summaryrefslogtreecommitdiff
path: root/doc/classes/HingeJoint.xml
blob: d18e63f8a36ed8a9f6a33255381635bd54dbae30 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="UTF-8" ?>
<class name="HingeJoint" inherits="Joint" category="Core" version="3.0.alpha.custom_build">
	<brief_description>
		A hinge between two 3D bodies.
	</brief_description>
	<description>
		Normaly uses the z-axis of body A as the hinge axis, another axis can be specified when adding it manually though.
	</description>
	<tutorials>
	</tutorials>
	<demos>
	</demos>
	<methods>
		<method name="get_flag" qualifiers="const">
			<return type="bool">
			</return>
			<argument index="0" name="flag" type="int" enum="HingeJoint.Flag">
			</argument>
			<description>
			</description>
		</method>
		<method name="get_param" qualifiers="const">
			<return type="float">
			</return>
			<argument index="0" name="param" type="int" enum="HingeJoint.Param">
			</argument>
			<description>
			</description>
		</method>
		<method name="set_flag">
			<return type="void">
			</return>
			<argument index="0" name="flag" type="int" enum="HingeJoint.Flag">
			</argument>
			<argument index="1" name="enabled" type="bool">
			</argument>
			<description>
			</description>
		</method>
		<method name="set_param">
			<return type="void">
			</return>
			<argument index="0" name="param" type="int" enum="HingeJoint.Param">
			</argument>
			<argument index="1" name="value" type="float">
			</argument>
			<description>
			</description>
		</method>
	</methods>
	<members>
		<member name="angular_limit/bias" type="float" setter="set_param" getter="get_param">
			The speed with which the rotation across the axis perpendicular to the hinge gets corrected.
		</member>
		<member name="angular_limit/enable" type="bool" setter="set_flag" getter="get_flag">
			If [code]true[/code] the hinges maximum and minimum rotation, defined by [member angular_limit/lower] and [member angular_limit/upper] has effects.
		</member>
		<member name="angular_limit/lower" type="float" setter="_set_lower_limit" getter="_get_lower_limit">
			The minimum rotation. only active if [member angular_limit/enable] is [code]true[/code].
		</member>
		<member name="angular_limit/relaxation" type="float" setter="set_param" getter="get_param">
			The lower this value, the more the rotation gets slowed down.
		</member>
		<member name="angular_limit/softness" type="float" setter="set_param" getter="get_param">
		</member>
		<member name="angular_limit/upper" type="float" setter="_set_upper_limit" getter="_get_upper_limit">
			The maximum rotation. only active if [member angular_limit/enable] is [code]true[/code].
		</member>
		<member name="motor/enable" type="bool" setter="set_flag" getter="get_flag">
			When activated, a motor turns the hinge.
		</member>
		<member name="motor/max_impulse" type="float" setter="set_param" getter="get_param">
			Maximum acceleration for the motor.
		</member>
		<member name="motor/target_velocity" type="float" setter="set_param" getter="get_param">
			Target speed for the motor.
		</member>
		<member name="params/bias" type="float" setter="set_param" getter="get_param">
			The speed with wich the two bodies get pulled together when they move in different directions.
		</member>
	</members>
	<constants>
		<constant name="PARAM_BIAS" value="0">
			The speed with wich the two bodies get pulled together when they move in different directions.
		</constant>
		<constant name="PARAM_LIMIT_UPPER" value="1">
			The maximum rotation. only active if [member angular_limit/enable] is [code]true[/code].
		</constant>
		<constant name="PARAM_LIMIT_LOWER" value="2">
			The minimum rotation. only active if [member angular_limit/enable] is [code]true[/code].
		</constant>
		<constant name="PARAM_LIMIT_BIAS" value="3">
			The speed with which the rotation across the axis perpendicular to the hinge gets corrected.
		</constant>
		<constant name="PARAM_LIMIT_SOFTNESS" value="4">
		</constant>
		<constant name="PARAM_LIMIT_RELAXATION" value="5">
			The lower this value, the more the rotation gets slowed down.
		</constant>
		<constant name="PARAM_MOTOR_TARGET_VELOCITY" value="6">
			Target speed for the motor.
		</constant>
		<constant name="PARAM_MOTOR_MAX_IMPULSE" value="7">
			Maximum acceleration for the motor.
		</constant>
		<constant name="PARAM_MAX" value="8">
			End flag of PARAM_* constants, used internally.
		</constant>
		<constant name="FLAG_USE_LIMIT" value="0">
			If [code]true[/code] the hinges maximum and minimum rotation, defined by [member angular_limit/lower] and [member angular_limit/upper] has effects.
		</constant>
		<constant name="FLAG_ENABLE_MOTOR" value="1">
			When activated, a motor turns the hinge.
		</constant>
		<constant name="FLAG_MAX" value="2">
			End flag of FLAG_* constants, used internally.
		</constant>
	</constants>
</class>