Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

rotate along normal unity

transform.rotation.z = Quaternion.FromToRotation(Vector3.up, hit.normal).z;
 
PREVIOUS NEXT
Tagged: #rotate #normal #unity
ADD COMMENT
Topic
Name
2+3 =