|
How do you align a default unity cylinder to indicate the hit.normal vector in a raycast?
(comments are locked)
|
|
I haven't tested, but wouldn't this work? cylinder.transform.rotation = Quaternion.FromToRotation (Vector3.up, RaycastHit.normal); no that gets the parallel to surface
May 07 '11 at 03:45 AM
ina
nvm it worked! (child object, the arrow had been set at 90 degree off, in trying to get a previous hack to work)
May 07 '11 at 04:58 AM
ina
(comments are locked)
|
