How to get line lenght/vector3, when i cast Ray with some direction and hit some collider (it dont have to be cube).
I want to calculate some float distance or Vector3 from input point (RaycastHit.point) to some output point
How can i do that ?
.