It looks like you're new here. If you want to get involved, click one of these buttons!
I am working on 2D refraction and I need to find out when i'm on the left side of my normal so I can reflect my directions across the normal axis. Is there anyway to do that? I'm using gizmos for debug, red is angle of incidence, cyan is angle of refraction, and blue is normal line.
Here is my laser code https://pastebin.com/pXUT3suT
And object pool used by my laser https://pastebin.com/ewYQqG37
Nvm I figured it out myself. Just needed to use a cross product.
New code https://pastebin.com/jVbQ2MmK