I am new to programming, and am trying my best to figure this out.
essentially, I would like to determine my mouse location is either left or right of my actors forward vector. A simple test i am sure, but i seem to struggling.
I assume i need to get the hit position of the mouse on the level/plane.
Then get the rotation of where that hit is from my actor.
and use the axis on whether it is negative or positive according to forward vector.
But in essence, I seem to be finding this very difficult, when I do get a rotation, it ignores the actors transform and/or when i move my actor, the location of my movement is added/subtract (yes, i dont know how i stuff that up)
ok, thanks for this BaoBao, I have had to tweek a few things on my end due to lack of understanding.
my actor rotation input had to change a little as it was effecting my numbers (local vs world).
and i had to add ‘get controller pawn’ to location/right vector for some reason.
my actor is moving, so my main issue was the fact that when it moved, the location variable would expand to a point where everything was either left or right.
now my next issue is simply adjusting the hit result to register the ocean mechanic.
i really appreciate the debug sphere aspect, as this showed me a critical issue aswell