org.xith3d.physics.collision
Class CollisionPool

java.lang.Object
  extended by org.openmali.pooling.ObjectPool<Collision>
      extended by org.xith3d.physics.collision.CollisionPool

public class CollisionPool
extends org.openmali.pooling.ObjectPool<Collision>

A Pool for Collision instances.


Constructor Summary
CollisionPool(int initialSize)
           
 
Method Summary
 Collision alloc()
          
 Collision alloc(org.openmali.vecmath2.Point3f pos, org.openmali.vecmath2.Vector3f normal, float depth, Collideable c1, Collideable c2)
           
protected  Collision newInstance()
          
 
Methods inherited from class org.openmali.pooling.ObjectPool
free, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionPool

public CollisionPool(int initialSize)
Method Detail

newInstance

protected Collision newInstance()

Specified by:
newInstance in class org.openmali.pooling.ObjectPool<Collision>

alloc

public Collision alloc()

Overrides:
alloc in class org.openmali.pooling.ObjectPool<Collision>

alloc

public Collision alloc(org.openmali.vecmath2.Point3f pos,
                       org.openmali.vecmath2.Vector3f normal,
                       float depth,
                       Collideable c1,
                       Collideable c2)