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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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