Page 2 of 3

Re: Collision Detection

Posted: Mon Jul 21, 2008 7:44 pm
by Kuromeku
Thank you.

Re: Collision Detection

Posted: Mon Jul 21, 2008 8:49 pm
by Xfcn
That is freakin' sweet. Runs about a constant 90 FPS on my machine (I've only got 1GB of RAM and a 256MB graphics card).

Re: Collision Detection

Posted: Mon Jul 21, 2008 9:19 pm
by rude
That app is most likely CPU-bound, though, and would benefit from some partitioning ...

Re: Collision Detection

Posted: Mon Jul 21, 2008 9:35 pm
by Xfcn
I wish I easily understood half of what's going on in the code. I mean, I'll eventually get what's happening, but I'm horrid and reading other people's code (a strong hint as to why I'm not a professional programmer).

Re: Collision Detection

Posted: Tue Jul 22, 2008 11:47 pm
by Dr. Magnusson
How you're able to have that many objects on screen at the same time with that high FPS is beyond me. Could you try and, instead of making them move around randomly, just have them fall down?

I tried it myself but couldn't quite figure your code out.

Re: Collision Detection

Posted: Wed Jul 23, 2008 10:19 am
by mike
Dr. Magnusson: I don't have a solution to your problem (as I am currently posting from work and am useless), but I just wanted to say that your nickname is epic.

Re: Collision Detection

Posted: Wed Jul 23, 2008 10:41 am
by Dr. Magnusson
I take it you're familiar with the Half-Life series :V

Re: Collision Detection

Posted: Sun Jul 27, 2008 11:53 pm
by rude
Dr. Magnusson wrote:How you're able to have that many objects on screen at the same time with that high FPS is beyond me. Could you try and, instead of making them move around randomly, just have them fall down?
Eh? Around 100 FPS with all the shapes clustered at the bottom. Is that what you meant?

Re: Collision Detection

Posted: Sun Jul 27, 2008 11:57 pm
by Xfcn
I think he means gravity.

Re: Collision Detection

Posted: Mon Jul 28, 2008 12:05 am
by rude
There is a gravity option, but I added it after I took the screenshot.