mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
Merge pull request #11125 from zavb074/master
Removed code that flips normal if facing away from test direction
This commit is contained in:
commit
6ec9383706
@ -1211,8 +1211,6 @@ void ConcavePolygonShapeSW::_cull_segment(int p_idx, _SegmentCullParams *p_param
|
||||
p_params->min_d = d;
|
||||
p_params->result = res;
|
||||
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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user