float distanceOther = this.distanceToCamera();
return (distance > distanceOther)?1:(distance == distanceOther)?0:-1;
}
public float distanceToCamera(){
ReadableVector3f camPos = getCurrentCamera().getPosition();
float distance = new Vector3f(this.position.x-camPos.getX(), this.position.y-camPos.getY(), this.position.z-camPos.getZ()).length();
return distance;
}