Using Bullet for collision only ?

Mind Calamity
Posts: 13
Joined: Tue Feb 28, 2012 7:51 am

Using Bullet for collision only ?

Post by Mind Calamity »

Hi, I already know that it's possible to use Bullet for collision only, the problem is - I have no idea how.

I want to manually move the object and only prevent it from going through objects (the whole point of collision detection).

Code snippets would be nice.

BTW - My world is created like this:

Code: Select all

mWorld = new btDiscreteDynamicsWorld(mDispatcher, mBroadphase, mSolver, mCollisionConfig);
I also tried creating and updating a btCollisionObject and setting it's world transform every frame, but as expected that didn't work, so how do I make it work ?
MaxDZ8
Posts: 149
Joined: Fri Jun 24, 2011 8:53 am

Re: Using Bullet for collision only ?

Post by MaxDZ8 »

It is my understanding btCollisionWorld should be sufficient for this purpose. Have you looked at CollisionDemo?
When using dynamics, Kinematic objects won't cause collisions. This is intended behavior as far as I've understood.