Calculate transform.forward on my own

Hallo guys is there a way to calculate the forward Vector3 of a Quaternion or a Euler?

Not sure what your asking. If you have a quaternion representing an absolute rotation in world space, you can calculate the new forward. For example:

var q = Quaternion.Euler(45.0, 16.0, 22.2);
var newForward = q * Vector3.forward;

Ok I found the answer on my own.

Thats what I searched:

transform.rotation * Vector3.forward

Thanks

  • RaverTiny