Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: ScottyBrosious on January 11, 2007

Title: Collision Detection?
Post by: ScottyBrosious on January 11, 2007
I'm createing a program where you
control a ball through a maze and avoid the traps.

It's 3D
I thought create an array that show where walls are
and map that to screen position and cells within array.

I left a post and someone said in onpengl you could do it
faster by setting material flag and then create a function that
returns material.id does anyone know how do this?

Is it a better way,faster?

I don't know a whole world about opengl so if anyone could
help me it would be nice.
Thanks
Title: Re: Collision Detection?
Post by: Jim on January 11, 2007
Hi Scotty,

I think your original plan was the best.  If you can make that work, then you can think about making it faster later on.  In all honesty you are far better off, while you're learning, to concentrate on the methods and algorithms and solutions and maths than you are worrying about which 3D library to use or whether it's fast or not or needs optimising.

Jim