summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-09-13 19:33:01 +0200
committerGitHub <noreply@github.com>2017-09-13 19:33:01 +0200
commit6ec93837067521dcf10493dcddd27d60a92376aa (patch)
tree9d1508f3a3416bfc8e0b7008d243f6f48d97d0fa
parent97a2ed6fa6ef49a5249916cd1c8b22bf77e58906 (diff)
parentb11e145ddc29db27f75c463cc47c65cb8bbd205c (diff)
Merge pull request #11125 from zavb074/master
Removed code that flips normal if facing away from test direction
-rw-r--r--servers/physics/shape_sw.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/servers/physics/shape_sw.cpp b/servers/physics/shape_sw.cpp
index 80eeff93d0..6dafaac115 100644
--- a/servers/physics/shape_sw.cpp
+++ b/servers/physics/shape_sw.cpp
@@ -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++;
}
}