My Raycast won't work at all ?? (C# Windows)
Hello, It is my first time getting used to raycast and somehow my code doesn't work. I don't get a log-entry, see a red rayline drawn during runtime or something else.
My tank has this cannon part marked in the picture from that origin a ray should cast forward. The cube infront of him has the tag "obstacle".
What am i not getting? Do i have to do something outside of the code to get it working? I feel really stupid after 1.5 hours and alot of tutorials not getting my mistake.
Pls help. :)
Answer by Echtkeinfake · Apr 10, 2017 at 02:24 AM
ok for once i found one mistake. In my code the tag "obstacle" =/= the actuall tag "Obstacle". So the log entry worked :) Still i don't see the ray drawn... :o any ideas?
Your answer
Follow this Question
Related Questions
Unity coding problem 1 Answer
Error message with script 2 Answers
c# cods spaceship 0 Answers
My gameobject variable appearently doesn't exist. (I am usint Unity 5.6) 0 Answers