I’m a beginner on UE and i’m facing a problem. I am probably not treating this issue as I should I guess so i’m asking your help
I followed a tuto to create a simple turret. Now I am trying to improve it.
I am trying to play a sound WHEN my turret is moving.
So my turret detect a target, then align to it ( by comparing “find look at rotation” between both actors and “get World Rotation” of the turret. When it is different, it align to it. That is working.
When i am far from the alignement, everything is OK. But when my turrent is aligned to the target, and the target is moving, I can’t find a way to detect the micro movement. All i have done is not accurate enought.
I tried to round the rotation vector and everything, but this is not accurate enought. Whether it is too round and i can’t detect the micro movement, whether it is not enough rounded and the alignement is always different. Look
The final print string is telling me if the two vectors a equal. So the turret align, I micro move, it micro re align, and sometimes it says TRUE, sometime it says FALSE, because it’s not accurate enought. I also tried with the “DOT” function but it’s not beter
How should I do ?
Thank for those taking the time to read me. Really.
Edit : here are the values returned by “Find look at Rotation” and “Get World Rotation” when both are align, there is a little difference