Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

raycast gets wrong layer

$
0
0
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...

Viewing all articles
Browse latest Browse all 827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>