This question was
closed Oct 19, 2016 at 11:04 PM by
alex_e_m for the following reason:
The question is answered, right answer was accepted
Question by
alex_e_m · Oct 19, 2016 at 08:32 PM ·
physicsraycastissuelayer mask
raycast gets wrong layer
I have a sea on layer (4:"Water") and cube on "Ignore raycast" (cube's layer is not important). so I attach my script to the cube that trys raycast from cube's position to Vector3.down*30.0f on layer (NameToLayer) "Water". and it finds the cube !!!
can someone explain me how does it happened and how to fix this...
Comment