From 5f257bc79d78f27f36afbeff55c47b7f4fa7f277 Mon Sep 17 00:00:00 2001 From: Maksim Krylosov Date: Sat, 20 Jul 2024 18:04:14 +0300 Subject: [PATCH] normalize zero length quaternions --- src/quat-impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quat-impl.ts b/src/quat-impl.ts index 09144ce..b8cc2e7 100644 --- a/src/quat-impl.ts +++ b/src/quat-impl.ts @@ -728,7 +728,7 @@ function normalize(v: QuatArg, dst?: T) { newDst[0] = 0; newDst[1] = 0; newDst[2] = 0; - newDst[3] = 0; + newDst[3] = 1; } return newDst;