You've already forked godot
							
							
				mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 12:00:25 +00:00 
			
		
		
		
	Add a note about navigation mesh baking issues when using 0 for the agent_radius
				
					
				
			This commit is contained in:
		@@ -95,11 +95,12 @@
 | 
			
		||||
		<member name="agent_radius" type="float" setter="set_agent_radius" getter="get_agent_radius" default="0.5">
 | 
			
		||||
			The distance to erode/shrink the walkable area of the heightfield away from obstructions.
 | 
			
		||||
			[b]Note:[/b] While baking, this value will be rounded up to the nearest multiple of [member cell_size].
 | 
			
		||||
			[b]Note:[/b] The radius must be equal or higher than [code]0.0[/code]. If the radius is [code]0.0[/code], it won't be possible to fix invalid outline overlaps and other precision errors during the baking process. As a result, some obstacles may be excluded incorrectly from the final navigation mesh, or may delete the navigation mesh's polygons.
 | 
			
		||||
		</member>
 | 
			
		||||
		<member name="border_size" type="float" setter="set_border_size" getter="get_border_size" default="0.0">
 | 
			
		||||
			The size of the non-navigable border around the bake bounding area.
 | 
			
		||||
			In conjunction with the [member filter_baking_aabb] and a [member edge_max_error] value at [code]1.0[/code] or below the border size can be used to bake tile aligned navigation meshes without the tile edges being shrunk by [member agent_radius].
 | 
			
		||||
			[b]Note:[/b] While baking and not zero, this value will be rounded up to the nearest multiple of [member cell_size].
 | 
			
		||||
			[b]Note:[/b] If this value is not [code]0.0[/code], it will be rounded up to the nearest multiple of [member cell_size] during baking.
 | 
			
		||||
		</member>
 | 
			
		||||
		<member name="cell_height" type="float" setter="set_cell_height" getter="get_cell_height" default="0.25">
 | 
			
		||||
			The cell height used to rasterize the navigation mesh vertices on the Y axis. Must match with the cell height on the navigation map.
 | 
			
		||||
 
 | 
			
		||||
@@ -172,6 +172,7 @@
 | 
			
		||||
	<members>
 | 
			
		||||
		<member name="agent_radius" type="float" setter="set_agent_radius" getter="get_agent_radius" default="10.0">
 | 
			
		||||
			The distance to erode/shrink the walkable surface when baking the navigation mesh.
 | 
			
		||||
			[b]Note:[/b] The radius must be equal or higher than [code]0.0[/code]. If the radius is [code]0.0[/code], it won't be possible to fix invalid outline overlaps and other precision errors during the baking process. As a result, some obstacles may be excluded incorrectly from the final navigation mesh, or may delete the navigation mesh's polygons.
 | 
			
		||||
		</member>
 | 
			
		||||
		<member name="baking_rect" type="Rect2" setter="set_baking_rect" getter="get_baking_rect" default="Rect2(0, 0, 0, 0)">
 | 
			
		||||
			If the baking [Rect2] has an area the navigation mesh baking will be restricted to its enclosing area.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user