summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLewis <zavb074@live.rhul.ac.uk>2017-09-09 20:08:35 +0100
committerLewis <zavb074@live.rhul.ac.uk>2017-09-09 20:08:35 +0100
commitb11e145ddc29db27f75c463cc47c65cb8bbd205c (patch)
treeb828fa3ab9b4bfb0dfd54456755545a9d3d63f7c
parentd1cb73b47a17de830d9474026ffa7b3587cfbc68 (diff)
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 1845188089..378f6a234e 100644
--- a/servers/physics/shape_sw.cpp
+++ b/servers/physics/shape_sw.cpp
@@ -1208,8 +1208,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++;
}
}