G General

Porch Swing, Playground Swing, or Pendulum Script (even Rocking Chair) Version 4

Porch Swing, Playground Swing, or Pendulum Script (even Rocking Chair)
Details
Features
Contents
Reviews

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).

Average rating: full star full star full star full star full star
  • 5 star:
  • 4 star:
  • 3 star:
  • 2 star:
  • 1 star:
This is the one!
full star full star full star full star full star Posted January 21, 2025 by eudois

i cant believe this script! its amazing! it does things that the expensive ones dont do! you can use it in inked objects! you can then swivel the objects on the Z axis and it doesnt break the swing animation. it has a dialog menu you can use or when set to FALSE it just works on touch! and you can set all the values to make it as smooth as you want and change the axis and all! i've spent so much time and money on testing scripts that only half work. thank you so much for this!

Was this review helpful?
Amazing lil script for $29L?!
full star full star full star full star full star Posted May 14, 2024 by Snow Shadow

super easy-to-use script with detailed notes to change different variables for your particular situation. I used this on a rocking chair, two versions (activate with AVSitter and click to rock) and it took me around 10-15 minutes to get the settings just right on both. Great find. Thank you!

Was this review helpful?
WOWWWW!! So goood!!!
full star full star full star full star full star Posted March 23, 2024 by Bonny Greenwood

I always forget to leave reviews but this one was worth the extra effort to remember. This did everything I could have wanted and more!!! Very pleased with the flexibility and expansive menu! Even connects to AVSitter! Wow.. so cheap for all this!!

Was this review helpful?
100% recommended, excellent script
full star full star full star full star full star Posted November 01, 2023 by AOXOXO

It is top quality, a very well made script, it also has a menu with many options, it also does not produce lag and has a very natural movement, I never give reviews but this script deserves a good review and thanks to the seller for the good price, since a script of such quality and features does not go below 500 lindens, thank you I recommend it 100%

Was this review helpful?
Perfect
full star full star full star full star full star Posted September 30, 2023 by Sharelle Aurelia

Thank you.

Was this review helpful?
brilliant.
full star full star full star full star full star Posted May 24, 2023 by CazaSL

ive tried 10 different scripts, this one finally worked for me and has a nice menu with different heights and speeds.
Thank you!

Was this review helpful?