To see it work, just throw it into any prim, and then click it.
Version 4, added an option to have it interface with the AVsitter menu system (but not necessary). While I was at it, I also added a menu so the user could select different speeds & heights to swing.
A full perm, full featured script for swings (or any pendulum). The only limitation is that it will only work for swings that are level (not rotated on X or Y). (Rotations on Z are fine, such as turning it to face a different direction.)
If the swing is a link-set, be sure this script is in the root prim. If it's in a child prim, only that single prim will swing.
There are options for setting hinge top or bottom, initial swing direction, degrees to swing, pause at top of swinging, speed, and a hinge offset tweak. This offset tweak is great for swings with hooks that might cause the hinge-point to be a bit below the top of the swing.
Using this script, your swing will cause it to swing smoothly.
There's also a setting to flip the "swing" action. If you do that, and tinker with the hinge offset, you can use it in a rocking chair.
This is one of the few swing scripts you'll find that works with a single-prim or a link-set. It will also work in a swing that's a linked-child of a larger structure.
There are also algorithms in the script to correct for "creep" (the small rounding errors that accumulate with LSL floats over time).
By purchasing this script, you agree to wrap it into your own creations (possibly to use, possibly to sell). And you agree to NOT sell it solely as a script. If you make modifications, those modifications are still only to be used by you or sold in your creations (and not sold as a script).
perfect
Just perfect for what I intended to do, my only problem is I can't figure out how to disable the auto-position of the prim I'm using, when I try to pull it higher it will go back to is original position.
Just what I was looking for
I'm a full perm furniture maker and I needed a simple, easy to use script for rocking chairs and the like so I can set up demo's. This script is clearly annotated with all the information you need and is a pleasure to work with - even for me, a scripting novice. Will recommend it to my customers!
I need more stars to tell you how awesome this is!
For the price, I really was not expecting this to be such a well done script but omg, its works so much better than I expected. I have been putting off doing swings or rocking chairs since most don't lock to the root prim rotation correctly and are very poorly done overall. This however worked so well, was easy to configure with little scripting knowledge and best of all, I can add it to my [AV]Sitter menu.
Highly Recommended
I highly recommend Acme Sales and all their products. All are high quality products!


