Question about e.normal
Posted: Sat Nov 03, 2018 7:55 am
I am working on a scene in which I need to determine which side of a rectangle that a laser is hitting it. I tried using e.normal, but the results that I am getting just don't seem to make sense. I am probably not using it correctly. Here is what I am trying to do: Imagine a door. One side of the door occasionally gets hit by a laser, and the other side of that same door occasionally gets hit. There are times when BOTH sides of the door get hit at the same time by the same laser (mirrors may reflect the beam from one side to the other side). I need a simple script that will calculate which side of the door is being hit by the laser, and if both sides are being hit at the same time. I assume that e.normal is the correct function to use for this task, but if there might be a better way, please let me know. Please provide an example script.
Thanks!
UPDATE: I figured out a way to do what I described above without using e.normal. It's an alternative method which so far seems to work quite well. I still do not know how to use e.normal in a script, so if anyone would like to leave a little tutorial about e.normal here, it would be much appreciated. I don't currently need it, but once I understand how to use it, then I may find that I will need it in some future scene. Thanks for any information that anyone wants to share about it!
Thanks!
UPDATE: I figured out a way to do what I described above without using e.normal. It's an alternative method which so far seems to work quite well. I still do not know how to use e.normal in a script, so if anyone would like to leave a little tutorial about e.normal here, it would be much appreciated. I don't currently need it, but once I understand how to use it, then I may find that I will need it in some future scene. Thanks for any information that anyone wants to share about it!