Download

Trigger Based on FOV

Can anyone please tell me if it is possible to trigger a change based on whether or not the player is looking at/ facing something, such as the opacity of a material?
Thanks.

We don’t have any built-in support for that kind of event. You could get the object and the players camera position/orientation, and dot product the view direction and object direction, and if it is more than some threshold, consider the player ‘looking’ at it. We are discussing ways to make this kind of query easier in a future version.

Great, thank you for your response James.