Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to test two 3D oriented bounding box objects against each other and stop them if there is a hit detected.

How can I accomplish this using only the collision detection functions in the Bullet physics API?

share|improve this question
Look at the first sample in bullet source, App_BasicDemo, it does exactly this (collision between non-AA boxes). – Benlitz Aug 11 '12 at 18:35
up vote 0 down vote accepted

Bullet comes with many demos, some of them just show or uses exactly what you want to achieve.

I suggest to have a look at the Bullet demos.

The demos folder should be right in the root of the Bullet source code.

You can browse the code online here

share|improve this answer
that demo uses the physics engine which is don't want to use. – user389006 Aug 11 '12 at 18:57
@user389006 bullet is a physics library, if you do not want to use physics why using this library? i don't get your point and what you want to achieve. – user827992 Aug 11 '12 at 18:59
i want to manage all the movement myself. should i use an other library for collision detection? – user389006 Aug 11 '12 at 19:05
@user389006 just run the demos, you will controll the subject, the collision detection doesn't care about controlling the movement, you will control the player with your input, the point about a collision detection system is just to trigger an event when and if 2 or more meshes or parts of a mesh are in contact, nothing to do with controlling the movements, you can also find some articles online , just run the demos and you will see everything by yourself. – user827992 Aug 11 '12 at 19:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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