Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Dash - a better way?

Fenix Eldritch
Mostly harmless
Join date: 30 Jan 2005
Posts: 201
05-29-2007 12:55
Over the weekend I put together a simple script to try and simulate a quick burst of speed for an avatar's movement. For a visualization, compare it to the dash technique from the mega man games. When commanded the script pushes the avatar wearing it and plays a little animation override. By iteslf, this little toy works quite well... that is, on level ground.

If I come to a slight upward slope or bumb, I am stopped dead in my tracks. Conversly, if I try to dash down a slight slope, I fly off it and usually end up face-planting myself. I realize why this happens because of the nature of how the push works... so my question of the scripting community is this;

Is there a better way to to this? Is there a way to give my avatar a burst of speed that will still enable him to follow the contour of the land? Or at least a way to stop him from getting stuck in place by "getting up" after face-planting?

If possible, a way in which would not require caging myself or getting on an invisible vehicle...
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
05-29-2007 18:15
If they'll always be on the ground, llGroundSlope() might be useful. On arbitrary prims, though, nothing "leaps" to mind.

edit: no clue if this would work, but... perhaps rez a wedge-shaped physical prim in front of the avatar first and push it, having it report its path, for directions to push the avatar?
SqueezeOne Pow
World Changer
Join date: 21 Dec 2005
Posts: 1,437
10-01-2007 15:00
I'm working on a similar concept for maneuvering, non-flight "jump jets" for a robot av. I'm still in the process of getting the whole thing ironed out but I was able to get around the uphill/rough terrain issue by applying a slight amount of push upwards as well as in the direction you want to go. That way you're technically gliding slightly above ground which would lessen any resistance from minor bumps and inclines of the terrain you're on.

It's not perfect but welcome to SL! ;)
_____________________
Semper Fly
-S1. Pow

"Violence is Art by another means"

Visit Squeeze One Plaza in Osteria. Come for the robots, stay for the view!http://slurl.com/secondlife/Osteria/160.331/203.881
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
02-02-2008 21:51
I think is possible because I buy a hud called homni phase and do exactly that type of aceleration you whant, even pass wall :P