How to Get facing here

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Vikrant

I don’t understand how to get Facing Here I tried using rotation but error occurred saying it require vector2. Then what actually is Facing and how to calculate it. does he mean Vector2(1,1).rotated(rotation)? Pls help me… I want to implement FOV system but stuck at this facing

And don’t judge my English just help me :slight_smile:

:bust_in_silhouette: Reply From: Vikrant

I found the way to get Facing here. Don’t know if it is correct way to do so…
the way i did is Vector2.UP.rotated(rotation) * 100 .
I used Vector2.UP as my enemy is facing upwards if no rotation is applied.

Correct me if i am wrong.