[sldev] How to move the avatar with finer, high precision
increments?
Ettore Pasquini
ettore_pasquini at 3dconnexion.com
Thu Mar 22 12:46:33 PDT 2007
On 3/13/07 10:18 PM, "John Hurliman" <jhurliman at wsu.edu> wrote:
> Ettore Pasquini wrote:
>>
>> I want to add support for an external input device that I intend to use for
>> navigation in SL. The device produces high-res values that I'd like to use
>> to move the avatar around with high sensitivity.
>
> High precision movement has been accomplished by libsecondlife team
> members but you have to use some tricks. Movement is done by sending
> AgentUpdate packets with simple status flags saying whether you are
> pushing forward/back/left/right/up/down/etc for basic movement. The
> trick is to look at your current velocity and do your basic equal and
> opposite reaction calculations to move the avatar in a direction and
> then stop on a dime. By setting the current rotation in AgentUpdate you
> can control which direction you are moving, and bringing it all together
> you can achieve precise movement. Maybe I can dig up some code on Monday.
John, did you find the sample code you mentioned above? It would be very
helpful. Thanks in advance.
Ettore
Ps.
BTW if you want to contact me directly, feel free
to do so ( ettore_pasquini at 3dconnexion.com )
More information about the SLDev
mailing list