Scripting Gravity
4 posts • Page 1 of 1
Scripting Gravity
Is there any way to script the direction of gravity with an on collide? (Ball hits block and everything falls up) I can only find a little slider bar that says "Gravity angle offset", but I can't use that to script.
-

tallman1996 - Posts: 13
- Joined: Mon Mar 22, 2010 10:16 pm
Re: Scripting Gravity
Search Grady's list of thyme variable and stuff. I'm sure it's there. If it's not, bind the gravity angle offset to an object and control the angle of the object.
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: Scripting Gravity
The script is pretty simple.
And the value is the angle in radians, so if you want things to fall upwards, you will need 180 degrees, wich is around 3.141592 radians.
PS: 1 radian = aprox. 57,2957 degrees.
- Code: Select all
sim.gravityangleoffset = any value you want here
And the value is the angle in radians, so if you want things to fall upwards, you will need 180 degrees, wich is around 3.141592 radians.
PS: 1 radian = aprox. 57,2957 degrees.
Gears are my favorite mechanism. Why do you think I have this username ? 
Make sure to spend some time to see my work http://www.algodoo.com/algobox/profile.php?id=96, just to kill sometime
PS: Gear97™ Is a trademark from me. Any unauthorized use of the term "Gear" for usernames or other naming ideas will be punished.
Make sure to spend some time to see my work http://www.algodoo.com/algobox/profile.php?id=96, just to kill sometime
PS: Gear97™ Is a trademark from me. Any unauthorized use of the term "Gear" for usernames or other naming ideas will be punished.
-

Gear97 - Posts: 146
- Joined: Sat Jan 02, 2010 5:34 pm
- Location: Brazil
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests





