So I’m making a simple 2D rpg. What I need is to be able to interact with the entity that the player is looking at. I need to be able to look at E.g another player in the world and press ‘E’ and have a method inside the player class called. I’m using libgdx with box2d if anyone was wondering.
Thanks.