From a30ae7d0fb13b9a00a17e621463c186fb6ac5ada Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 6 Jan 2010 06:12:58 +0100 Subject: Optimized triangle normal handling --- src/Collision.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Collision.cpp') diff --git a/src/Collision.cpp b/src/Collision.cpp index 21ef083..81bc89d 100644 --- a/src/Collision.cpp +++ b/src/Collision.cpp @@ -136,7 +136,7 @@ bool Collision::test(const Triangle &t, const vmml::vec3f &m, float r, const vmm float d; - vmml::vec3f triangleNormal = t.computeNormal(); + vmml::vec3f triangleNormal = t.getNormal(); if(test(t, MathUtil::Ray(m - r*triangleNormal, move), &d) && d > -MathUtil::EPSILON) { if(d < 1) { if(distance) -- cgit v1.2.3