This makes me go nuts. I’m using the basic raycast coding. When i play my game to test out, it only detects one side of my collider. I need this raycast for my pickup interaction. Example, a box. My character will not detect my collider from the top side. only sides.
What type of game is it? If it’s 2D then it’s obvious why. ![]()
And if it’s 3D it’s probably because you’re raycasting in world space and when you’re above the collider you’re not raycasting in the direction you think you are.
Use this one and you should be able to easily figure out where your ray goes and why it doesn’t hit your collider: