- Home /
Question by
Game1324 · Oct 12, 2020 at 09:42 AM ·
scripting problemphysics.raycast
Raycasting only works when close to an object
I'm using Physics.Raycast to detect objects based on a brackeys tutorial I watched a year ago. I rewatched it and rewrote the scripts four or five times now and I don't know what to do. The raycast only hits when its spawn point is close to an object. If anyone can help that would be amazing.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613013448im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Using raycast to determine the thickness of a collider 1 Answer
Raycast Only Hits an Object if the Previous Raycast hits the Object 1 Answer
c# - List with multiple types - Trading Engine - Stock Simulator 2 Answers
variable not being changed outside of a method. [C#] 3 Answers
Trigger Sound more than Once 0 Answers