//If this bullet is within the driveable's detection range
if(getDistanceToEntity(driveable) <= driveable.getDriveableType().bulletDetectionRadius + speed)
{
//Raytrace the bullet
ArrayList<BulletHit> driveableHits = driveable.attackFromBullet(origin, motion);
hits.addAll(driveableHits);
}
}
//Get players
else if(obj instanceof EntityPlayer)