Hi,
I'm currently working on an blueprint implementation of https://forums.unrealengine.com/show...Blueprint-Node
I've managed to create a working script, however I'm trying to get my head around the 'Project World To Screen' node. It takes in a Player controller and a World Position (Vector 3) of the object you're projecting and returns a Screen Position (Vector 2D). The object being projected is a ball. Whenever the ball is behind the player the Screen Position returns a zero vector. I'm not 100% sure why, but the node stops returning a value. I was thinking that it may be due to the fact that the ball at some point is no longer being rendered and thus the function returns a zero vector but this doesn't make much sense since the world location of the ball is passed through continuously.
Is there an alternative way of calculating the Screen Position for when the object is behind the player?
Here you can see the ball is slightly of screen:

Here once the player has turned so the ball is almost directly behind it the indicator disappears (because the Project World To Screen stops returning a Screen position):
I'm currently working on an blueprint implementation of https://forums.unrealengine.com/show...Blueprint-Node
I've managed to create a working script, however I'm trying to get my head around the 'Project World To Screen' node. It takes in a Player controller and a World Position (Vector 3) of the object you're projecting and returns a Screen Position (Vector 2D). The object being projected is a ball. Whenever the ball is behind the player the Screen Position returns a zero vector. I'm not 100% sure why, but the node stops returning a value. I was thinking that it may be due to the fact that the ball at some point is no longer being rendered and thus the function returns a zero vector but this doesn't make much sense since the world location of the ball is passed through continuously.

Is there an alternative way of calculating the Screen Position for when the object is behind the player?
Here you can see the ball is slightly of screen:

Here once the player has turned so the ball is almost directly behind it the indicator disappears (because the Project World To Screen stops returning a Screen position):

Comment