Download

Boolean is true when pushed in the opposite direction of character

I tried to get that title as “explainful” as possible xD

Anyways, what I am trying to achieve, is that I want my boolean to be true, if the
player presses the direction button/pushes the analog stick into the opposite direction
of which the character is looking.

Does anybody have an idea how I would manage that? Thanks in advance :slight_smile:

Note that I am using a thirdperson game.

Look up “Dot products”. Basically it’s a mathematical equation of two vectors (directions) that tells you how “alike” they are. Should help you out :slight_smile:

I sadly don’t really get the idea of dot products o:

4d46e324e53cf310ceb22d54ee3ea09d9b0ce227.png

I got this far, but I don’t really know where I can check that if direction is pressed into the opposite direction of the Arrow Component.

Any help with that? :frowning: