if ((s.getType() & Spatial.TRIMESH) == 0 || (t.getType() & Spatial.TRIMESH) == 0) {
if ((s.getType() & SceneElement.TRIMESH) == 0 || (t.getType() & SceneElement.TRIMESH) == 0) {
    public void addCollision(Geometry s, Geometry t) {        a.clear();        b.clear();        //find the triangle that is being hit.        //add this node and the triangle to the CollisionResults list.        if ((s.getType() & Spatial.TRIMESH) == 0 || (t.getType() & Spatial.TRIMESH) == 0) {            CollisionData data = new CollisionData(s, t);            addCollisionData(data);        } else {        	//XXX speed this up.        	for(int i = 0; i < s.getBatchCount(); i++) {        		for(int j = 0; j < t.getBatchCount(); j++) {        			((TriMesh) s).findTriangleCollision((TriMesh) t, i, j, a, b);        			CollisionData data = new CollisionData(s, t, i, j, a, b);                    addCollisionData(data);        		}        	}                    }    }