|
Raina Andel
Registered User
Join date: 17 Jul 2008
Posts: 3
|
09-05-2008 00:17
I've got this cool AV, that I want to be able to give people 'rides' on. So After reading some things here, I've decided to make a 'vehicle' that I can sit on, the passenger can also sit on, and it'll do various animations on both of us, that gives the impression that they're sitting on me, while I walk around.
the problem I'm having though is stopping and starting. I want it to be just as smooth as if I were walking normally.
right now I have it so when I'm in the 'drivers seat' as it were, and I push the up key on my keyboard, the walk animation starts on my av, and the vehicle moves forward. When I release the up key, the animation stops, but I 'slide' to a slow halt.
I've messed around with the friction values as well as the linear decay values, but I can't seem to get anything that makes me stop immediately upon releasing the up key.
Can anyone offer any suggestions?
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
09-05-2008 00:25
Try turning off physics. llSetStatus(STATUS_PHYSICS, FALSE); That ought to be pretty immediate. 
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
09-05-2008 03:16
This will stop you dead...
llMoveToTarget( llGetPos(), .1);
...but it will also twist you, and I can't figure out how to stop that. And under MONO there's sometimes a jump when you hit the movement controls again, and I can't figure that out, either.
(you'll also need to read up on llStopMoveToTarget)
|
|
Raina Andel
Registered User
Join date: 17 Jul 2008
Posts: 3
|
09-05-2008 19:42
From: Hewee Zetkin Try turning off physics. llSetStatus(STATUS_PHYSICS, FALSE); That ought to be pretty immediate.  hmm... tried that this morning.. didn't seem to do anything, but I probabily didn't use the right syntax. fairly new at all this scripting stuff, and working mainly off examples on the wiki 
|