Physics & Gravity Engine


#1

Hey Hopscoters! I was wondering if anyone could help me with this physics engine I'm testing out.

It will include as such;

  • I would like to simulate real life gravity. As in, when an object jumps or gets propelled in the air, It will slow down as it gets higher, and comes back down faster.

  • When the object is in the air, you can't tap the iPad again to make it jump again. Like in geometry dash.


#2

The gravity part is illustrated here:

https://c.gethopscotch.com/p/xi5bino63

There are also discussion threads about the subject on the forum that may be helpful.


#3

look at the code in this project. hope it helps!


#4

nice! 20202020 body invalid