Browse Search Popular Register Upload Rules User list Login:
Search:
How to make a Gravity Pad byThomas33

Image:
screenshot of the scene

Author: Thomas33

Group: Default

Filesize: 27.9 kB

Date added: 2020-06-11

Rating: 5

Downloads: 354

Views: 111

Comments: 5

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

My first tutorial
Please log in to rate this scene
edit
Similar scenes
Title: Gravity Game, version/level 1
Rating: 6.3
Filesize: 252.84 kB
Downloads: 1663
Comments: 4
Ratings: 4
Date added: 2009/03/21 00:26:32
Made with: Phun
Rating: rated 6.3
download
Title: Gravity scripts
Rating: 5
Filesize: 44.34 kB
Downloads: 392
Comments: 2
Ratings: 1
Date added: 2016/08/01 02:08:41
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Gravity Switchin
Rating: 5.625
Filesize: 5.69 kB
Downloads: 557
Comments: 0
Ratings: 2
Date added: 2013/12/12 02:51:16
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Anti-Gravity- Work In Progress
Rating: 5
Filesize: 33.84 kB
Downloads: 66
Comments: 2
Ratings: 1
Date added: 2009/01/05 23:53:30
Made with: Phun
no image found for this scene
Rating: rated 5
download
Title: Solar system V1
Rating: 5
Filesize: 20.31 kB
Downloads: 260
Comments: 1
Ratings: 1
Date added: 2009/07/17 19:22:37
Made with: Phun
Rating: rated 5
download
Title: How to 1
Rating: 5
Filesize: 191.7 kB
Downloads: 75
Comments: 0
Ratings: 1
Date added: 2016/03/18 08:05:05
Made with: Algodoo v2.1.0
Rating: rated 5
download
This is a good tutorial, although there is a better way to do it! Search up "Algodoo Gravity Pad" and you'll find tutorials that have more realistic ways of simulating gravity! :)
Ok, Thats A Good Scene But There Is A Better Way
Just Put In OnCollide: e.other.postStep = (e)=>{Vel = Vel +[0,0.5] }
And To Cancel The Gravity Just Put The Same Code And Erase The Vel = Vel + [0,0.5]
Last edited at 2020/06/23 11:17:00 by marcospupy01
@marcospupy01
That doesn't accurately simulate gravity, although you're getting there. Multiplying 0.5 by 60 (assuming simulation frequency is 60Hz) would get you 30 m/s^2. We all know that gravity is 9.8m/s^2, so subtracting 30 by 9.8 would be 20.2 m/s, which is too high. The correct number would be 0.327, but you can just bypass that by writing this:
(e)=>{
vel = vel + [0, 2 * sim.gravityStrength] / sim.frequency
}
One gravity strength to counteract the initial gravity the scene is putting on the object, the second to make it go upwards, and divided by the simulation frequency so it works on different simulation frequencies :)
Ok I am Making a NEW tutorial :happy:
:) I mean.