summaryrefslogtreecommitdiff
path: root/engine/src/math.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/math.rs')
-rw-r--r--engine/src/math.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/src/math.rs b/engine/src/math.rs
index b86e760..0340de8 100644
--- a/engine/src/math.rs
+++ b/engine/src/math.rs
@@ -13,5 +13,5 @@ pub fn calc_triangle_surface_normal(
let v1 = edge_b - egde_a;
let v2 = edge_c - egde_a;
- v1.cross(&v2)
+ v1.cross(&v2).normalize()
}