Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Water slides

Chicken Rosca
Registered User
Join date: 21 Jun 2007
Posts: 30
02-05-2008 05:41
Hi all,

I have been trying to make a spiral water slide for a long time, but I still didn't make it. I'm not really good at scripting.

At first, I tried to make a physical little ball to let it slide down, then let an avatar sit on it. But the ball rotates while sliding, avatar can not rotate with it. So the avatar is stuck.Then, I tried to use llPushObject to push an avatar down, but I don't know what parameters to give to llPushObject.

So, can anyone tell me a good way to make a spiral water slide? It will be better if with script! Thanks very much!!

Chicken
_____________________
I am a chicken that can not fly high...
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-05-2008 09:54
The one I wrote a while back calculates the direction and speed the avatar should be moving based on the slope and dimensions of the slide and the acceleration of gravity. It then uses llMoveToTarget() to move the avatar (on a waterslide mat) in the right direction and with roughly the right speed. Then it recalculates and corrects the llMoveToTarget() when the avatar gets about half-way to the next point, so that the damping deceleration hasn't significantly slowed the avatar down yet.
Galena Qi
Registered User
Join date: 9 Sep 2006
Posts: 249
02-05-2008 15:30
I haven't tried this, but I think it could be done with Puppeteer. Place a pose ball at the top of the slide, animate it with Puppeteer to move down the slide at the correct speed. Sure beats doing vector math!

You'll need to write a script to call the animation script with a chat command when the pose ball is sat on. The last frame in the animation should return to the top of the slide for the next user, so you'll need a step in your script to Unsit the avatar when it gets to the bottom of the slide.

The free (no-transfer scripts) version of Puppeteer is available here or in world.

http://slexchange.com/modules.php?name=Marketplace&file=item&ItemID=163930
Rob Adelaide
Cream Cheese Fanatic
Join date: 19 Oct 2006
Posts: 34
02-05-2008 20:54
If the slide isn't too long, you can use just an animation. If you look in the Bits and Bobs store (I think) they have a waterslide right inside that is relatively short so it can simply use an animation. If it's going to be very long though, you'll need a creative script to get it done.

-R
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
02-06-2008 03:04
Spirals are a tricky one as you can't really make them big enough for gravity to do the work for you. You are only left with move to target style effects.

Big slides with large angles can be achieved with gravity alone and some suitably low friction materials such as glass.

You need to watch for the avi and it's mat flipping over when using gravity but I think this kind of slide s allways more fun as you have the random elements of the Havok 1 physics to play with
_____________________
Tread softly upon the Earth for you walk on my face.
Chicken Rosca
Registered User
Join date: 21 Jun 2007
Posts: 30
02-20-2008 01:54
I understand. Thank you all for your answers :))
_____________________
I am a chicken that can not fly high...