From cd17e340946dcd2ff16e429c19a20650c07fd6c9 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Tue, 2 Aug 2016 03:36:06 +0200 Subject: [PATCH] Fix typo that broke bone lock orientation --- BBGE/Vector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BBGE/Vector.cpp b/BBGE/Vector.cpp index 7c37f34..0d3aee2 100644 --- a/BBGE/Vector.cpp +++ b/BBGE/Vector.cpp @@ -62,7 +62,7 @@ Vector getRotatedVector(const Vector &vec, float rot) */ float s = sinf(rot); float c = cosf(rot); - return c*vec.x - s*vec.y, s*vec.x + c*vec.y; + return Vector(c*vec.x - s*vec.y, s*vec.x + c*vec.y); } // note update this from float lerp