Omnimaga

Calculator Community => Other Calculators => Topic started by: Eeems on September 19, 2009, 11:26:40 am

Title: "Physics" program
Post by: Eeems on September 19, 2009, 11:26:40 am
just some physics I was playing around with, the ball bounces!
and you can change the distance it has to fall by pressing the arrow keys, and 2nd resets it, and puts it at the top of the screen, and graph quits.
also it will quit after a while due to the fact that it records stuff to lists, so it has to keep from having the mem error
also, requires the pic and celtic III or xLib
Title: Re: "Physics" program
Post by: JoeyBelgier on September 19, 2009, 12:39:36 pm
cool D:
Title: Re: "Physics" program
Post by: Eeems on September 19, 2009, 07:55:31 pm
ok, new version, now the key presses are displayed better, and there is a path recall :D
all just eye-candy
Title: Re: "Physics" program
Post by: Builderboy on September 19, 2009, 08:28:44 pm
That looks very nice!  Really good for basic.  We should figure out how Acyglobis did its physics and try to incorporate it into some massively awesome physics engine :P

Hmmm, shouldn't gravity be constant?
Title: Re: "Physics" program
Post by: DJ Omnimaga on September 19, 2009, 10:37:27 pm
Very nice, altough I agree with Builderboy about gravity. Also why does the letter A displays sometimes in the first screenshot?
Title: Re: "Physics" program
Post by: Builderboy on September 20, 2009, 12:12:31 am
It looks like it might be some sort of indicator if the ball goes off the top of the screen.
Title: Re: "Physics" program
Post by: Eeems on September 20, 2009, 03:50:12 pm
yeah, what I meant by gravity there, it was kind of accelleration, the ball goes faster the farther it falls, then it completely switches when it bounces, then it goes back to zero at the peak, then it speeds up again...so I guess not really gravity, just more of pull?
Title: Re: "Physics" program
Post by: Ti-newb on November 07, 2009, 11:56:38 pm
Ah sweet, I did something like this except just with 1 pixel. I would have a variable as my speed. And I would add it to my X, Coordinate. So everytime the prgm looped, it would always do Y-.001->Y, then I would have Y+X->X.  (as my speed and x as my X Coordinate.) and when the ball hits the ground (below a certain point) I'd have the speed turn into a positive. And the ball would keep bouncing untill it loses all speed. Lots of eye candy.
Title: Re: "Physics" program
Post by: megajake03 on November 08, 2009, 04:56:20 pm
neat
Title: Re: "Physics" program
Post by: ztrumpet on November 08, 2009, 04:59:07 pm
This is so much fun to mess around with.
Well done.
Title: Re: "Physics" program
Post by: Eeems on November 08, 2009, 06:39:43 pm
Lol, thanks. It was fun to mess around with :p that's why I made it :)