Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Gravity Reversal Script

Pyrite Sopwith
No Shoes Required
Join date: 8 Aug 2008
Posts: 169
08-13-2008 05:41
Does anyone know how to create a script on how to reverse gravity so that my feet could stand firmly on the ceiling without digging into the ceiling?
Beverly Ultsch
Registered User
Join date: 6 Sep 2007
Posts: 229
08-13-2008 07:23
I may be wrong but i think you need to look at animations for this.

/me ducks behind a wall waiting for someone to prove her wrong :)
Atom Burma
Registered User
Join date: 30 May 2006
Posts: 685
08-13-2008 09:05
Look on slexchange.com they have avatar accessories. I have seen things to make you able to walk up the sides of buildings. I am sure thats something close.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
08-13-2008 14:17
The question wasn't about whether there are products out there to do it. The question was how to implement such a script. Since this is the Scripting Tips forum, that's most likely what we should be focusing on anyway.

I can think of two ways to act like you have the normal acceleration of gravity in the upwards direction (from an attachment): llSetForce(2.0*9.8*llGetMass()) and llSetBuoyancy(2.0). That will get you to stick to the ceiling, and you should be able to move around, but I think SL might still think you are technically in the air, and it doesn't do anything about turning you upside-down. You'll need at the least an animation that flips you over, and you might need animations that make it look like you are walking despite really being "in the air". You might want to do a little move assist as well, since I'm not sure the normal movement while "in the air" is going to be satisfactory.
Scott Tureaud
market base?
Join date: 7 Jun 2007
Posts: 224
08-14-2008 16:27
I've used sethoverheight(slightly above the ceiling) and a simple torso flip animations to fake it.

Granted I really just used an attachment(that also played the torso flip animation) that slung me up and a Zhao with flying animations that actually used walk ones., granted I ditched it when I didn't feel like finding level 3 walk animations.

probably one of the simplest gadgets someone could make if they were bored enough, and users didn't mind not using an interfering AO.
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
08-19-2008 23:17
Yes, there is a relatively easy way but your avatar won't actually flip over, you'll need an animation for that.

llSetBuoyancy(2.0);

put that statement in a script, put the script in an object, and attatch the object to your avatar.

You can also change the 2.0 to a number better suited to your needs. anything greater than 1.0 rises, anything below it and it sinks. 1.0 is neutral buoyancy, makes for an interesting zero-gravity effect.