Let???s talk about the dot product in game development

How to use the dot product operation in Unreal Engine using C++ and Blueprints

When I work on gameplay mechanics, I often stumbled across situations where I need to apply maths.
When implementing my NPC (Non-player characters), I face a similar situation like the example I will show you here.

The dot product operation is one of them, it’s handy!
In this example, we have an intimidating giant blue cat stares at my salmon sashimi….

Don’t worry, the cat is friendly and only looks at you if you are facing it, and right there we have a clear situation where we can apply the dot product.
Am I facing the cat or not?

Visit Now