Hi everybody,
I want to create line control like this game:
https://play.google.com/store/apps/details?id=com.weegoon.thiefpuzzle&hl=vi&gl=US
I used linerenderer and Physics2D.RaycastHit to fire a ray to find nearest Collider2D. My expected result is hit.point return first point where the raycast hit the collider2D (see image below) . But some frame result is another hit point on collider's surface. Does anyone solve this problem? :(
↧