Let’s talk about the dot product in game development

<p>How to use the dot product operation in Unreal Engine using C++ and Blueprints</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*Wzhsbm--AlRdCzDZUbiuBA.png" style="height:394px; width:700px" /></p> <p>When I work on gameplay mechanics, I often stumbled across situations where I need to apply maths.<br /> When implementing my NPC (Non-player characters), I face a similar situation like the example I will show you here.</p> <p>The dot product operation is one of them, it&rsquo;s handy!<br /> In this example, we have an intimidating giant blue cat stares at my salmon sashimi&hellip;.</p> <p>Don&rsquo;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.<br /> Am I facing the cat or not?</p> <p><a href="https://bluebubblebee.medium.com/lets-talk-about-the-dot-product-in-videogames-67d833872820"><strong>Visit Now</strong></a></p>