collision detection

hi I need some help implementing collision detection.

It’s a simple situation and solution Im sure. I just dont know how to do it or where to start.

  • I have a cube and a character.
  • The character moves around the cube

I want to implement collision detection for when the character walks up against the boundary of the cube.

If any body knows how to do this Id appreciate the help.

Are you interested in collision only, or do you plan to do some physics with the result? This may have some bearing on the technique you choose.

BSP based collision detection is fast, but relies on tracing line segments through the world to detect collisions, and places some restraints on the type of source geometry you use and the complexity of interaction.

Generic triangle colliders can resolve intersections of arbitrary interpenetrating geometries, but rely on small time steps and incremental movement to detect and resolve collisions accurately.

Then again, you may want to look at a physics SDK, like ODE or NovodeX; they combine collision detection and physics in a single dynamics solution. There are other SDKs, but they tend to get a bit pricey.

By the way, anyone know what happened to this forum?