| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | <?xml version="1.0" encoding="UTF-8" ?> | 
					
						
							| 
									
										
										
										
											2017-11-24 09:16:52 +01:00
										 |  |  | <class name="HingeJoint" inherits="Joint" category="Core" version="3.0-beta"> | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	<brief_description> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 		A hinge between two 3D bodies. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</brief_description> | 
					
						
							|  |  |  | 	<description> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 		Normaly uses the z-axis of body A as the hinge axis, another axis can be specified when adding it manually though. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</description> | 
					
						
							|  |  |  | 	<tutorials> | 
					
						
							|  |  |  | 	</tutorials> | 
					
						
							|  |  |  | 	<demos> | 
					
						
							|  |  |  | 	</demos> | 
					
						
							|  |  |  | 	<methods> | 
					
						
							|  |  |  | 	</methods> | 
					
						
							|  |  |  | 	<members> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="angular_limit/bias" type="float" setter="set_param" getter="get_param"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The speed with which the rotation across the axis perpendicular to the hinge gets corrected. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="angular_limit/enable" type="bool" setter="set_flag" getter="get_flag"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			If [code]true[/code] the hinges maximum and minimum rotation, defined by [member angular_limit/lower] and [member angular_limit/upper] has effects. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="angular_limit/lower" type="float" setter="_set_lower_limit" getter="_get_lower_limit"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The minimum rotation. only active if [member angular_limit/enable] is [code]true[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="angular_limit/relaxation" type="float" setter="set_param" getter="get_param"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The lower this value, the more the rotation gets slowed down. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="angular_limit/softness" type="float" setter="set_param" getter="get_param"> | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="angular_limit/upper" type="float" setter="_set_upper_limit" getter="_get_upper_limit"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The maximum rotation. only active if [member angular_limit/enable] is [code]true[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="motor/enable" type="bool" setter="set_flag" getter="get_flag"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			When activated, a motor turns the hinge. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="motor/max_impulse" type="float" setter="set_param" getter="get_param"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			Maximum acceleration for the motor. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="motor/target_velocity" type="float" setter="set_param" getter="get_param"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			Target speed for the motor. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2017-09-13 08:49:40 +02:00
										 |  |  | 		<member name="params/bias" type="float" setter="set_param" getter="get_param"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The speed with wich the two bodies get pulled together when they move in different directions. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</member> | 
					
						
							|  |  |  | 	</members> | 
					
						
							|  |  |  | 	<constants> | 
					
						
							|  |  |  | 		<constant name="PARAM_BIAS" value="0"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The speed with wich the two bodies get pulled together when they move in different directions. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="PARAM_LIMIT_UPPER" value="1"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The maximum rotation. only active if [member angular_limit/enable] is [code]true[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="PARAM_LIMIT_LOWER" value="2"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The minimum rotation. only active if [member angular_limit/enable] is [code]true[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="PARAM_LIMIT_BIAS" value="3"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The speed with which the rotation across the axis perpendicular to the hinge gets corrected. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="PARAM_LIMIT_SOFTNESS" value="4"> | 
					
						
							|  |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="PARAM_LIMIT_RELAXATION" value="5"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			The lower this value, the more the rotation gets slowed down. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="PARAM_MOTOR_TARGET_VELOCITY" value="6"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			Target speed for the motor. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="PARAM_MOTOR_MAX_IMPULSE" value="7"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			Maximum acceleration for the motor. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="PARAM_MAX" value="8"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			End flag of PARAM_* constants, used internally. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="FLAG_USE_LIMIT" value="0"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			If [code]true[/code] the hinges maximum and minimum rotation, defined by [member angular_limit/lower] and [member angular_limit/upper] has effects. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="FLAG_ENABLE_MOTOR" value="1"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			When activated, a motor turns the hinge. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 		<constant name="FLAG_MAX" value="2"> | 
					
						
							| 
									
										
										
										
											2017-10-14 12:19:03 +02:00
										 |  |  | 			End flag of FLAG_* constants, used internally. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 		</constant> | 
					
						
							|  |  |  | 	</constants> | 
					
						
							|  |  |  | </class> |