I'm having great difficulty trying to implement collision detection and response in a 3d game

What are some simple solutions someone can use to implement smooth collision and response similar to games like Quake? I can see there are a lot of different ways to do collision and response but that makes it even more confusing, Im not sure which method is the best solution to sit down with.

So I was wondering what is the goto solution for the average programmer? All I have found online are very complicated incomplete mathematical explanations which I have a hard time understanding. Is this really a topic that requires an entire textbook to understand??

Perhaps theres a library ? Ive tried looking into bulllet but it seems to require heavy knowledge of physics. The best solution I have found is in a software called darkbasic, where it somehow handled sliding collision automatically and all the user had to do was desginate which object were to be handled. Was wondering maybe theres something similar to that

  • 1
    \$\begingroup\$ "Is this really a topic that requires an entire textbook to understand?" Yes, actually. :) I've heard this book is pretty good. It sounds like you might like Unity or Unreal Engine, which have built-in physics simulations that are simpler to use. \$\endgroup\$ – Anko Sep 16 '15 at 1:35
  • \$\begingroup\$ I have to fully agree with @Anko. It certainly is a topi that requires an entire textbook. Actually more than one. So after you do some basic reading, I can't help but recomend the famous: amazon.com/Real-Time-Collision-Detection-Christer-Ericson-ebook/…. Also, please let us which platform you are current using. I myself started with DarkBasic, but I also think today you would profit more from the builtin Physics engine present in Unity or Unreal Engine. \$\endgroup\$ – MAnd Nov 16 '15 at 10:11

Usually Simple Collision Detection Libraries are commonly built-in to 3d engines or as feature but here's a few that I know that are widely used that don't have the complexities and added Physics system:

Coldet http://sourceforge.net/projects/coldet/

OZCollide http://www.tsarevitch.org/ozcollide/

There's also Blitz3D, which is similar to DarkBasic (Language wise). It is Free and Open Source now and has a built-in collision system.


I was working in a project that has near-round characters and cube enviroment (walls, trees, etc...) there we managed collisions by embebing every char object in a sphere and getting the magnitude of the 0,0,0 point of the object (exactly the center of it), then you can easily check if magnitude + radius of item A is inn or out of magnitude + radius of item B and fire a collision if it's in it.

I didn't wrote it so i can't give you exact maths but i could help you to find out some new and efficient ways to detect collisions.

Hope it helps

  • \$\begingroup\$ I realize that you probably aren't allowed to post comments yet, but if you can help the OP, so write it in your answer. Otherwise it's not an answer. \$\endgroup\$ – MAnd Nov 16 '15 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.