From c5de3c38d771c3ef40522f73dea26b463ce82d05 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 20 Feb 2012 15:11:32 +0000 Subject: [PATCH] add a note about a VectorVectors bug git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11708 d7cf8633-e32d-0410-b094-e92efae38249 --- mathlib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mathlib.c b/mathlib.c index 129b0b8a..ed0a43c6 100644 --- a/mathlib.c +++ b/mathlib.c @@ -203,6 +203,10 @@ void VectorVectors(const vec3_t forward, vec3_t right, vec3_t up) right[0] = forward[2]; right[1] = -forward[0]; right[2] = forward[1]; + // BUG! + // assume forward = {sqrt(1/3), sqrt(1/3), -sqrt(1/3)} + // then right will be {-sqrt(1/3), -sqrt(1/3), sqrt(1/3)} + // PROBLEM? d = DotProduct(forward, right); VectorMA(right, -d, forward, right); -- 2.39.2