play around with the thingy and maybe use this for your own super smash bros/ platform fighter project idm
My brother helped me figure out the math cuz i suck looool, but really it's just getting the normalized vector's dot products... which is literally just subtracting the cosine and sine values. Scratch made it a lil weird, but i figured if u just rotate it all back to zero it calculates correctly.