Hello, I’m new to Unity.
I’m working on a game that looks like bowling. My problem is about the Raycast. I’m trying to make a line for the ball to show it’s path before the ball is thrown. Physics.Raycast won’t give me accurate results because my ball has radius and Raycast doesn’t. So I’m using SphereCast. The problem is I can’t get the center of the latest Sphere before hitting a collider. With that center I can draw a line from my ball and this center.
I’m searching for this for a long time but couldn’t find any answers.!
I put a photo to show the problem as I can. When I write hit.point, unity is giving me yellow position as it should but I want red position.