- Home /
What are the hit coordinates from raycasting?
aka: (x,y,x,y) (x,y)
Comment
Answer by Montraydavis · Nov 04, 2012 at 01:32 PM
function Update () {
var hit : RaycastHit;
if (Physics.Raycast (transform.position, -Vector3.up, hit)) {
var distanceToGround = hit.point;
}
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613083327im_/https://answers.unity.com/themes/thub/images/avi.jpg)