RayCast is ignoring object

Hello guys,

I’ve got interesting problem with RayCasting. It does not detect my GameObject “Log” (which I created in blender). This script can detect the other GameObject “Tree” created in Unity by TreeCreateor. So I put breakpoint into that method and it looks like problem with hit.lightmapCoord and it’s deadend for me. How can I solve this problem?

Thanks for the help!

Problem fixed by raycasting from Camera.main.