How do you align a default unity cylinder to indicate the hit.normal vector in a raycast?
I haven't tested, but wouldn't this work?
cylinder.transform.rotation = Quaternion.FromToRotation (Vector3.up, RaycastHit.normal);
How do you align a default unity cylinder to indicate the hit.normal vector in a raycast?
I haven't tested, but wouldn't this work?
cylinder.transform.rotation = Quaternion.FromToRotation (Vector3.up, RaycastHit.normal);