Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

Unity2D, How do i check which way a sprite is facing?

$
0
0
In the game im creating, the enemies can only move forward and apply torque to turn(i know how to do this). What i need to do is find out which way the sprite is facing so i can add logic to decide whether the AI applies torque in the correct direction or moves forward.

Viewing all articles
Browse latest Browse all 1488

Trending Articles