Hello. I am making a project in which I created a player node that has as variables the position and the orientation (where it is looking at), both variables are Vector2.
And I also made functional interactuable objects, so when the player can, they interact with the object and a consequence is triggered. But I want to take it to the next step: adding a condition that only when the player faces the object, the interaction can happen.
I made a global variable that records in every frame (delta) where the player is looking at and it works. But I don't know how to apply this variable to the context.
Does anyone know? Thanks!