Author Topic: Collision Detection?  (Read 2313 times)

0 Members and 1 Guest are viewing this topic.

Offline ScottyBrosious

  • C= 64
  • **
  • Posts: 25
  • Karma: 3
    • View Profile
Collision Detection?
« 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

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Collision Detection?
« Reply #1 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
Challenge Trophies Won: