Wow! This short tutorial really helped me get to grips with ray casting, I’ve used it once or twice but still been unsure on how it should be used. This really clear tutorial was much appreciated!
Thank you for the video! It was really easy to understand the concept. I was scared of raycasts but now understanding it, it is really easy! ty again homie
Great video! just a little reminder that in order to drawRay u have to write :"Debug.DrawRay(raycast.origin,raycast.direction)" not the gameobject transform!
Hello, I have a issue, I have a box in the scene plus a ruler in front of it. I need to send a light ray out of the box and read the value on the ruler after hit. I do not know how to tell the ray light to bring back the value from ruler. Can you help?
Why does your Raycast stops after hitting a target? Mine keeps on going forever and this is giving me a lot of problems. Btw your channel helps me a lot,thanks!
Wow! This short tutorial really helped me get to grips with ray casting, I’ve used it once or twice but still been unsure on how it should be used. This really clear tutorial was much appreciated!
Thank you for the video! It was really easy to understand the concept. I was scared of raycasts but now understanding it, it is really easy! ty again homie
Great video!
just a little reminder that in order to drawRay u have to write :"Debug.DrawRay(raycast.origin,raycast.direction)" not the gameobject transform!
Wow! Great video! You explain things very well. I finally get it.
Thank you! It helped a lot more, than long tutorials.
up to the point video!
thanks man finally i understand how raycasts work
Thank you man i was really confused with this really thank you!
Thanks Brother about this information.
Very cool. thx for the tutorial.
Thanks so much for this! Helps a lot
thanks alot u r awsome
Hello, I have a issue, I have a box in the scene plus a ruler in front of it. I need to send a light ray out of the box and read the value on the ruler after hit. I do not know how to tell the ray light to bring back the value from ruler. Can you help?
I don't know whats wrong but whenever I look at something with the layer mask set in both the object and the script it still returns nothing
How would one go by coding the "monster" to move towards the players position when not directly looked at?
exactly what i needed..😮
Thanks men it was so clear
i still confused how to make ,,,,,,,,,it alwayse give damage once
"Color.red" or "Color.green" doesn't seem to work in my case.
this is really helpful, but can you toggle the ray cast on/off via script? It looks like by just pointing a gun it could do damage.
Yea.. you can make the damage script inside a button press function. For example you can make the damage only when we press the mouse button.
Awesome
awesome video...
Why does your Raycast stops after hitting a target? Mine keeps on going forever and this is giving me a lot of problems. Btw your channel helps me a lot,thanks!
combine it with a health script on the enemy and when health reaches 0 , tag enemy object dies and raycast stops shooting cause it wil hit nothing
thanks
Hostage
TEE