Change font size
It is currently Wed Aug 15, 2018 1:18 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 6 posts ]
Author Message
 Post subject: Slow down avatar walk
PostPosted: Thu Jul 28, 2011 11:51 pm 
OSG Elite

Joined: Tue Dec 21, 2010 8:01 pm
Posts: 370
I know this is an odd request, but, I'm aware of a command to speed up an avatar walk. Is there any script or command that will slow down an avatar walk?

_________________
Walter Balazic
Littlefield Systems
http://www.lfgrid.com


Top
 Profile  
 
 Post subject: Re: Slow down avatar walk
PostPosted: Fri Jul 29, 2011 1:42 am 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1055
Location: Czech Republic
Greetings,
it is not a bad question at all. In 0.6.. sims the was settings within [ODEPhysicsSettings] sections whose allowed to set this up. Namely:
{L_CODE}:
; Movement.  Smaller is faster.

    ; speed of movement with Always Run off
    av_movement_divisor_walk = 1.3

    ; speed of movement with Always Run on
    av_movement_divisor_run = 0.8


I am not sure if is similar setting accessible via OSSL function...


Top
 Profile  
 
 Post subject: Re: Slow down avatar walk
PostPosted: Fri Jul 29, 2011 9:47 am 
OSG Elite

Joined: Tue Dec 21, 2010 8:01 pm
Posts: 370
Thank you Bo... However, I meant something that could be placed in an object, like a script, worn and would slow the avatar walk down rather than a global setting on the simulator. :)

_________________
Walter Balazic
Littlefield Systems
http://www.lfgrid.com


Top
 Profile  
 
 Post subject: Re: Slow down avatar walk
PostPosted: Fri Jul 29, 2011 10:00 am 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1055
Location: Czech Republic
Um, maybe apply a counter impulse while You moving? Here is an example of fly booster which does the oposite:
{L_CODE}:
//original scripterCory Linden
//modified by by Nada Epoch
float speed=10000;

default
{
    attach(key on)
    {
        if (on != NULL_KEY)
        {
            llListen(0,"",llGetOwner(),"");
            integer perm = llGetPermissions();
            if (perm != (PERMISSION_TAKE_CONTROLS))
            {
                llRequestPermissions(on, PERMISSION_TAKE_CONTROLS);
            }
            else
            {
                llTakeControls(CONTROL_FWD , TRUE, TRUE);
            }
        }
    }
   
    listen(integer channel, string name, key id, string m)
    {
        list test = llCSV2List(m);
        if(llGetListLength(test)==2&&llList2String(test,0)=="speed")
            speed=llList2Float(test,1);
    }

    run_time_permissions(integer perm)
    {
        if (perm)
        {
            llTakeControls(CONTROL_FWD, TRUE, TRUE);
        }
    }
   
    control(key owner, integer level, integer edge)
    {
        if (!(level & CONTROL_FWD) || !(llGetAgentInfo(llGetOwner())&AGENT_FLYING))
        {
            llSetForce(<0,0,0>, FALSE);
        }
        else
        {
            vector fwd= llRot2Fwd(llGetRot());
            fwd = llVecNorm(fwd);
            fwd *= speed;
            llSetForce(fwd, FALSE);
        }
    }
}

Bo


Top
 Profile  
 
 Post subject: Re: Slow down avatar walk
PostPosted: Fri Jul 29, 2011 3:09 pm 
OSG Elite

Joined: Tue Dec 21, 2010 8:01 pm
Posts: 370
Yes that's what we are doing now matter of fact, it will work, I was just hoping there was a better method.. :)

_________________
Walter Balazic
Littlefield Systems
http://www.lfgrid.com


Top
 Profile  
 
 Post subject: Re: Slow down avatar walk
PostPosted: Wed Sep 14, 2011 10:26 pm 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 384
Location: Australia
I wonder if you have seen this post yet by

Haplo Voss
{L_QUOTE}:
osSetSpeed (key id, float speed);

where speed = float value from 1 (normal walk) and beyond. 1.7ish is normal av run speed. 3 is a pretty cool 'super speed'. If you want to get across your sim so fast you can't believe it, try 8.

of course you can set it below 1 and get slower and nearly no movement at all. Good for 'freezing' or 'slow movement' effects.

I don't know exactly what you are after, but this is an option that doesn't require much coding if all you are looking for is av speed control.

Take care,
- Hap

so I thought I'd bring it to your attention
Cam


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 6 posts ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net