hi,
in this tutorial i use the DotProduct to align the character on the vertical axis for strafing… here is a use case and it´s all written, no video, just screenshots…
and this one i made also alot of screenshots and a video
when i come back i can make a tittle example but that will take a few hours ~
in this 2 posts you will find the DotProducts for you aiming or character facing…
i would say that DotProduct is one of the most important calculations in gaming math…
Dot product - Wikipedia here is a definition but simple sayed “The dot product, also called scalar product, is a measure of how closely two vectors align, in terms of the directions they point.”
but if you are interested here is a super video https://www.youtube.com/watch?v=MOYiVLEnhrw she is awesome and has alot of useful videos
and this one is also a hit… i really like her… her videos are top notch
back soon but i just found this gem
simple math that is genius
hope this helps you
cheers