i am new to ray casting so any help with the code will be appreciated.
in the screenshot given below … when i click on any chair the character goes to that chair, and i want to measure the distance between the hit point and the character moving towards the hit point.
Vector3.Distance(player.position, chair.position);