Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

i need a swing

Sara Lukas
.·:*¨¨* In Love *¨¨*:·.
Join date: 15 Dec 2006
Posts: 311
07-03-2007 06:41
does anyone know where i can find a free script for a swing?
i have the rocking chair one and i read somewhere that it could be used to make a swing, but i dont know how
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
07-03-2007 08:26
This request really belongs in the "Classifieds: Products Wanted" forum.

/147/1.html

I will tell you this from a Scripting Tips point of view -- Most swings I have seen simply use the common multi-prim door script, altered so that it swings continuously with more steps, instead of just opening or closing, with a click starting and stopping it.

The swing is then constructed with a "hinge" prim at the top, the root prim, which is the center of its rotation. This cannot of course be linked to the swing's frame.

Your rocking chair script simply rocks from the bottom instead of the top, you see?

There are more complex ways to do it of course.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
07-03-2007 12:03
Which reminds me: I was trying to script a physical "swing" with llRotLookAt(), and got stymied at an early stage when I couldn't find any way to make the half-period any greater than 1 second in duration. So then I made a half-hearted attempt to chop up longer-period swings into 1 second segments and use a timer to catch it mid-trajectory before any noticeable damping and send it on to the next segment destination. But this seemed, uh, "inelegant." Might anyone know a better way?