Event Based on the Player's camera rotation

in this image the value of z is stroed in a variable called ‘Zrot’

image

after storing the rotation data in variable ,we can do the logic like this

And the question is? :innocent:

1 Like

Hello, Welcome to the Forums.

I’m also unsure what the problem/question is, but I do have a pro-tip that will protect you from banging your head against the keyboard trying to troubleshoot rotators/rotations.

It’s easier to think in terms of 1 to Zero (I’m looking directly at/away from something and all the area in between (use the ABS node to get rid of negative values))

In the screenshot, it’s based along the X axis (X==1) but you could change the “frame of reference” by feeding other vectors into the dot product.

Let us know if you have more info/questions!

2 Likes