diff options
author | Mike Turvey <mturvey6@gmail.com> | 2017-06-02 12:14:37 -0700 |
---|---|---|
committer | Mike Turvey <mturvey6@gmail.com> | 2017-06-02 12:14:37 -0700 |
commit | 4f4c994a3984f4b946664b923812e456685410ab (patch) | |
tree | f61ced92c7199e19bd518e5a42f7481f4cac3c11 /src/poser_turveytori.c | |
parent | 046188c2168a20f94db8f68e15c9813fe3087515 (diff) | |
download | libsurvive-4f4c994a3984f4b946664b923812e456685410ab.tar.gz libsurvive-4f4c994a3984f4b946664b923812e456685410ab.tar.bz2 |
Small change to orientation
This definitely works a little better. There are still issues.
Diffstat (limited to 'src/poser_turveytori.c')
-rw-r--r-- | src/poser_turveytori.c | 4 |
1 files 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); |