I'm currently developing a game, that uses irrlicht for graphics and bullet for physics.
At the moment, i have been programming the weapon system, and (for balistic feedback) i need to create the bullet bodies each time the mouse is pressed (a new bullet body is created).
The trick can work for weapons like pistols, or slow guns, but for machine gun (that shots a lot of bullet per seconds), the method doesn't work well (the game starts dropping FPS). That just because the physics engine needs to alloc a lot of body in a little time.
My idea was to allocate a bunch of bullet bodies before loading the level, than use that when shooting and "reset" their status after a collision, but i don't think is a great idea.
Anyone has other methods?
Thank you very much
