diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2010-01-06 06:12:58 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2010-01-06 06:12:58 +0100 |
commit | a30ae7d0fb13b9a00a17e621463c186fb6ac5ada (patch) | |
tree | 883cf24043ea124de8f6162ba106dce8866d63e1 /src/Collision.cpp | |
parent | 2aa2097b6cffd6ed58e127b0ed4f76d6255ac495 (diff) | |
download | zoom++-a30ae7d0fb13b9a00a17e621463c186fb6ac5ada.tar zoom++-a30ae7d0fb13b9a00a17e621463c186fb6ac5ada.zip |
Optimized triangle normal handling
Diffstat (limited to 'src/Collision.cpp')
-rw-r--r-- | src/Collision.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |