- Home /
Question by
FlippingFlopper · Nov 25, 2018 at 11:06 AM ·
raycasthit
point of RaycastHit is changing, when ray is not.
Hello. I wanna make 3d gameobject to follow touchpoint. But the Vector3 axis of RaycastHit is changing, while I'm not moving my cursor. Below is my code and debug log. is raycastHit axis supposed to be changing like this? Y position of debug log is variating, but I didn't move the cursor.
Y axis is increasing by 0.5, and has ended up at 29.5. I think it's because Y axis of mainCamera is 30. mainCamera is looking at below of itself.
제목-없음.png
(26.2 kB)
제목-없음2.png
(66.4 kB)
Comment
Answer by FlippingFlopper · Nov 25, 2018 at 11:24 AM
Just found out why. The ray is hitting the object's surface, before reaching to it's position. xD