For example, raycast hit the part (Red one)
But when I want to get the position of raycast, I will get the position of origin (green one) , not the one where the raycast has hit.
Do someone know what can help me?
For example, raycast hit the part (Red one)
But when I want to get the position of raycast, I will get the position of origin (green one) , not the one where the raycast has hit.
Do someone know what can help me?
It should always return a RaycastResult
containing whatever nessecary data for it. In which it has Position
(point to intersection) and Normal
(being the intersected face).
There was a little mistake in my code which returned the position of origin, not position of intersection!!! Thanks a lot!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.