Creating simple gravity - in BMax.

BlitzMax Forums/BlitzMax Beginners Area/Creating simple gravity - in BMax.

IPete2(Posted 2006) [#1]
For those wondering of how to create simple gravity for objects in BMax, please see here:

www.blitzbasic.com/codearcs/codearcs.php?code=1709

Simple - almost too simple.

IPete2.


ImaginaryHuman(Posted 2006) [#2]
Yup, if you know things are 2D, you just add or multiply your y movement `adder` by a gravity value then add the total to the y coords.


bradford6(Posted 2006) [#3]
cool Ipete2

here is one with some X added:




IPete2(Posted 2006) [#4]
Great stuff bill, thanks for the additions...

IPete2.


bradford6(Posted 2006) [#5]
no problem. this kind of stuff is fun. I'll try some other stuff now...

any ideas?


bradford6(Posted 2006) [#6]
this one appears a litle more elastic:




Grey Alien(Posted 2006) [#7]
Ipete2: First code archive entry hey? Good to see you are getting to grips with BMax.


IPete2(Posted 2006) [#8]
Well I guess the next thing to do is make it available to any object with a single call - using types...

Thanks Jake, Yeah I was interested n the Physics thread which seems to have died now...

And this is really just to highlight that you don't need complex physics, jusyt "as good as" will do.

IPete2.