Problem with caching Geoms

Topics: Project Management Forum, User Forum
Apr 13, 2010 at 8:02 PM

Hello,


In order to optimize my code I am caching (Pool<T>) Geom objects to use for bullets. It all works fine but at random times some bullets become unresponsive.

I've checked if they are static for any reason and they aren't (nor are they set anywhere to be).

I've checked if they don't get added to simulator and they do.

 

The circled bulelts are unresponsive. http://img297.imageshack.us/img297/3190/errorq.png

 

Can there be any reason why they are unresponsive? I've even RESETED all fields in the geom and every bullet goes through the same process, no exceptions. Could it be something with the distance grid? because I cache distance grids depending on Vertices (there are different size/shape bullets, but all sizes and shapes re use vertices from their parent data).