[sldev] How to move the avatar with finer, high precision increments?

John Hurliman jhurliman at wsu.edu
Thu Mar 22 15:23:41 PDT 2007


Ettore Pasquini wrote:
> 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 )
>
>   

I just talked to the author of the code and I was misinformed on what he 
had written. His trick used the simulator-based autopilot function along 
with some well-timed AgentUpdate packets. What I outlined would still be 
possible but I don't know of any code right now to do it.

John Hurliman



More information about the SLDev mailing list