Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Is there a way to find which side of the normal im on?

MajorLagMajorLag Member
edited May 22 in Programming

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

Best Answer

Sign In or Register to comment.