elbojoloco Posted November 28, 2018 Share Posted November 28, 2018 Hi, In my code I use this simple piece to check if an entity is visible, if not, rotate the screen so it becomes visible: if (!vein.isVisible()) { log ("Vein is not in screen, rotating camera..."); if (getCamera().toEntity(vein)) { log("Turned into view"); } } However even when the vein is not visible, it is still returning true and doesn't rotate the camera, is there any other way to check reliably? Quote Link to comment Share on other sites More sharing options...
NoxMerc Posted November 28, 2018 Share Posted November 28, 2018 I'm wondering if you're storing vein in a variable that's out of sync with the game. Have you tried replacing vein with the retrieval code (e.g. getObjects().closest("vein"))? Quote Link to comment Share on other sites More sharing options...