WorldToScreen returning incorrect values

Hi I’m having some trouble getting correct values from camera’s worldToScreen.
Once the camera is beyond a distance from the entity I seem to get negative values when I would expect positive. The use case here is for a UI indicator to point in the direction of an entity once off screen.

I’ve setup a little test project where you can see the issue. I’m clamping the red square indicator to the screen bounds and at a certain point within the camera’s move tween it flips from being in the bottom right corner (as expected) to the top left. I am also logging on screen the returned screen position and you can see that flip to being negative too.

https://playcanvas.com/project/1197046/overview/worldtoscreen-broken-example

Any help would be greatly appreciated!