- 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