diff --git a/Source/Engine/Core/Math/Triangle.h b/Source/Engine/Core/Math/Triangle.h index 72aee5409..a830f7e3e 100644 --- a/Source/Engine/Core/Math/Triangle.h +++ b/Source/Engine/Core/Math/Triangle.h @@ -49,6 +49,13 @@ public: { } +public: + + Vector3 GetNormal() const + { + return Vector3::Normalize((V1 - V0) ^ (V2 - V0)); + } + public: // Determines if there is an intersection between the current object and a Ray