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

And object pool used by my laser

Best Answer

Sign In or Register to comment.