Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Get entity at supplied world position LIBGDX

$
0
0

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.


Viewing all articles
Browse latest Browse all 434

Trending Articles