summaryrefslogtreecommitdiffstats
path: root/src/core/Collision.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core/Collision.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/Collision.h b/src/core/Collision.h
index 09abaa1c..d79352b5 100644
--- a/src/core/Collision.h
+++ b/src/core/Collision.h
@@ -74,6 +74,9 @@ struct CColTrianglePlane
void Set(const CVector *v, CColTriangle &tri);
void GetNormal(CVector &n) const { n = normal; }
+ float GetNormalX() const { return normal.x; }
+ float GetNormalY() const { return normal.y; }
+ float GetNormalZ() const { return normal.z; }
float CalcPoint(const CVector &v) const { return DotProduct(normal, v) - dist; };
};