mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Removed code that flips normal if facing away from test direction
This commit is contained in:
		
							parent
							
								
									d1cb73b47a
								
							
						
					
					
						commit
						b11e145ddc
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -1208,8 +1208,6 @@ void ConcavePolygonShapeSW::_cull_segment(int p_idx, _SegmentCullParams *p_param | ||||||
| 				p_params->min_d = d; | 				p_params->min_d = d; | ||||||
| 				p_params->result = res; | 				p_params->result = res; | ||||||
| 				p_params->normal = Plane(vertices[0], vertices[1], vertices[2]).normal; | 				p_params->normal = Plane(vertices[0], vertices[1], vertices[2]).normal; | ||||||
| 				if (p_params->normal.dot(p_params->dir) > 0) |  | ||||||
| 					p_params->normal = -p_params->normal; |  | ||||||
| 				p_params->collisions++; | 				p_params->collisions++; | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lewis
						Lewis