Page 1 of 1

How to use Bullet in a game

Posted: Tue Sep 21, 2010 4:35 pm
by kunshou
Hi!
I am new to Bullet. I want to use Bullet in a game for collision detection. And I am managing a very large scene with octree scene manager. I guess it's not a good idea that I add all the objects to Bullet in the begining of the game, since the objects far away would barely interact with the player and should be static.
Should I add the objects to bullet when the player can see and remove them when the player can't at the runtime????


thanks so much!

Re: How to use Bullet in a game

Posted: Wed Nov 03, 2010 12:28 am
by Erwin Coumans
It is easiest/most common to just add all objects at the start of a game. The acceleration structures and deactivation (sleeping) mechanism takes care of performance.

Thanks,
Erwin