Jump to content

How to tell if rotation is facing a given position


Recommended Posts

Dear phaser community.

I'm using phaser 2.6.2.

See the screenshot attached.

The turret of the tank 1 is NOT facing the tank 2.

The turret of the tank 2 IS facing the tank 1.

I have the .rotation of both turrets and I would like to "detect" if a "turret is facing another tank".

I've done several tests to check if so but none of them worked as expected.

I want to learn how to do it, where should I start?

Thank you.

Screen Shot 2018-06-28 at 21.png

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...