Quantcast
Viewing latest article 9
Browse Latest Browse All 95

Answer by gfoot

Multiply the quaternion by an Euler rotation quaternion like this: transform.rotation = Quaternion.LookRotation(hit.normal) * Quaternion.Euler(0, 0, zAngle); You can also specify a custom "up" axis to LookRotation, in case that suits your inputs better.

Viewing latest article 9
Browse Latest Browse All 95

Trending Articles