object rotation only when visible