metalx1000 / metal_bullets

First Person Shooter in HTML5 with ThreeJS and WebGL
GNU Affero General Public License v3.0
14 stars 9 forks source link

Barrel physics #9

Open n9103 opened 10 years ago

n9103 commented 10 years ago

Another oddity with barrels and gravity. Shot out the bottom barrels, and the top one hung in mid-air.

metalx1000 commented 10 years ago

I try to limit the number of active physics in a scene because of the system resources the use up. So, Physics are only active when a barrel takes damage (either from a gun shot or nearby explosion). This still needs tweaking, but most the issues in the test level are do to either the barrels being placed to far apart from each other or because I set the barrels "Health" level to high.

So, this is partially a coding problem and partially a level design problem. I plan on working on both.