if(worldBound == null) { return; } if (worldBound.intersects(toTest)) { if (worldMatrot == null) { worldMatrot = worldRotation.toRotationMatrix(); } else { worldRotation.toRotationMatrix(worldMatrot); collisionTree.bounds.transform(worldMatrot, worldTranslation, worldScale, collisionTree.worldBounds); collisionTree.intersect(toTest, results); } } }
if (worldBound == null) { return; } if (worldBound.intersects(toTest)) { if (worldMatrot == null) { worldMatrot = worldRotation.toRotationMatrix(); } else { worldRotation.toRotationMatrix(worldMatrot);  if (collisionTree == null) { updateCollisionTree(); } collisionTree.bounds.transform(worldMatrot, worldTranslation, worldScale, collisionTree.worldBounds); collisionTree.intersect(toTest, results); } } }
	public void findTrianglePick(Ray toTest, ArrayList results) {	    if(worldBound == null) {	        return;	    }		if (worldBound.intersects(toTest)) {			if (worldMatrot == null) {				worldMatrot = worldRotation.toRotationMatrix();			} else {				worldRotation.toRotationMatrix(worldMatrot);				collisionTree.bounds.transform(worldMatrot, worldTranslation,						worldScale, collisionTree.worldBounds);				collisionTree.intersect(toTest, results);			}		}	}