| 
									
										
										
										
											2020-02-10 15:24:00 +01:00
										 |  |  | <?xml version="1.0" encoding="UTF-8" ?> | 
					
						
							| 
									
										
										
										
											2022-02-14 14:18:53 +01:00
										 |  |  | <class name="NavigationObstacle2D" inherits="Node" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> | 
					
						
							| 
									
										
										
										
											2020-02-10 15:24:00 +01:00
										 |  |  | 	<brief_description> | 
					
						
							|  |  |  | 		2D Obstacle used in navigation for collision avoidance. | 
					
						
							|  |  |  | 	</brief_description> | 
					
						
							|  |  |  | 	<description> | 
					
						
							| 
									
										
										
										
											2021-03-08 09:47:18 +01:00
										 |  |  | 		2D Obstacle used in navigation for collision avoidance. The obstacle needs navigation data to work correctly. [NavigationObstacle2D] is physics safe. | 
					
						
							| 
									
										
										
										
											2022-06-02 01:24:43 +02:00
										 |  |  | 		[b]Note:[/b] Obstacles are intended as a last resort option for constantly moving objects that cannot be (re)baked to a navigation mesh efficiently. | 
					
						
							| 
									
										
										
										
											2020-02-10 15:24:00 +01:00
										 |  |  | 	</description> | 
					
						
							|  |  |  | 	<tutorials> | 
					
						
							|  |  |  | 	</tutorials> | 
					
						
							| 
									
										
										
										
											2022-05-14 23:33:09 +02:00
										 |  |  | 	<methods> | 
					
						
							|  |  |  | 		<method name="get_rid" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="RID" /> | 
					
						
							|  |  |  | 			<description> | 
					
						
							|  |  |  | 				Returns the [RID] of this obstacle on the [NavigationServer2D]. | 
					
						
							|  |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 	</methods> | 
					
						
							| 
									
										
										
										
											2021-10-21 22:25:06 +02:00
										 |  |  | 	<members> | 
					
						
							|  |  |  | 		<member name="estimate_radius" type="bool" setter="set_estimate_radius" getter="is_radius_estimated" default="true"> | 
					
						
							|  |  |  | 			Enables radius estimation algorithm which uses parent's collision shapes to determine the obstacle radius. | 
					
						
							|  |  |  | 		</member> | 
					
						
							|  |  |  | 		<member name="radius" type="float" setter="set_radius" getter="get_radius" default="1.0"> | 
					
						
							|  |  |  | 			The radius of the agent. Used only if [member estimate_radius] is set to false. | 
					
						
							|  |  |  | 		</member> | 
					
						
							|  |  |  | 	</members> | 
					
						
							| 
									
										
										
										
											2020-02-10 15:24:00 +01:00
										 |  |  | </class> |