How to use Bullet in a game

kunshou
Posts: 1
Joined: Tue Sep 21, 2010 4:07 pm

How to use Bullet in a game

Post 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!
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: How to use Bullet in a game

Post 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