Hi Ottawa

while implementing refraction, i came across some problems:
1. how can i check the material if the ray hit glass (in my wed file, i have placed two mirrors from prefab). i can check transmitter / receiver as these are entities by
if (you === Transmitter)
but what should i write for other objects?
2.Given that, the ray hit mirror then i will displace the ray by the size of the mirror (in cm or m) and then it will carry on without changing its direction, speed etc. as normally happens in refraction (when it comes out of the mirror and again in the same medium, air etc.). My problem is how to find the size of the mirror (thickness) and then add to my vector?
i hope you dont mind too much questioning:)
asif