[sldev] [VWR] How does mouselook work?

Ettore Pasquini ettore_pasquini at 3dconnexion.com
Tue Oct 16 14:08:40 PDT 2007


I have developed code to turn the avatar L/R/U/D using a joystick by calling
LLAgent::moveYaw(F32 angle)/movePitch(F32 angle) from
LLViewerJoystick::scanJoystick(). This also works during mouselook, meaning,
the 1st person view rotates accordingly. However, it is much slower than
what you achieve with the mouse.

So, how does mouselook work? How are mouselook camera rotations done, and
where are they in the code? I'd like to call/reuse that code for joystick
input instead of moveYaw()/movePitch().

Thanks,

Ettore



More information about the SLDev mailing list