Hey, I have a mathematical problem.
I have an object somewhere placed in the world and depending on where the player is located around it I want to have a value from 0 to 1. The distance of the player to the object doesn’t matter. Also the Z-Axis doesn’t matter, I only need two vectors. X and Y. I probably need to do something with the Dotproduct, but I don’t know how.
I want to use it to determine from what direction the player is coming towards the object and deform the object away from the player. If possible I would like to avoid Blueprints.
I hope this little drawing of me explains it better: