From 4f4c994a3984f4b946664b923812e456685410ab Mon Sep 17 00:00:00 2001 From: Mike Turvey Date: Fri, 2 Jun 2017 12:14:37 -0700 Subject: Small change to orientation This definitely works a little better. There are still issues. --- src/poser_turveytori.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/poser_turveytori.c b/src/poser_turveytori.c index ff7f47d..80e8d89 100644 --- a/src/poser_turveytori.c +++ b/src/poser_turveytori.c @@ -1366,8 +1366,8 @@ static Point SolveForLighthouse(FLT posOut[3], FLT quatOut[4], TrackedObject *ob wcPos[2] += so->ctx->bsd[lh].Pose.Pos[2]; FLT newOrientation[4]; - quatrotateabout(newOrientation, rotQuat, so->ctx->bsd[lh].Pose.Rot); // turns the wrong way - //quatrotateabout(newOrientation, so->ctx->bsd[lh].Pose.Rot, rotQuat); // turns the wrong way + //quatrotateabout(newOrientation, rotQuat, so->ctx->bsd[lh].Pose.Rot); // turns the wrong way + quatrotateabout(newOrientation, so->ctx->bsd[lh].Pose.Rot, rotQuat); // turns the wrong way FLT invRot[4]; quatgetreciprocal(invRot, rotQuat); -- cgit v1.2.3