Relative Content

Tag Archive for c#unity-game-engine

Unity Raycast doesn’t recognize collision

I’m trying to get an interaction system done in Unity for my project using raycast to measure the distance between player and object to interact with. Using both DrawLine and DrawRay it looks like the raycast collide with the object, but the conditions are not reached.