rotate vector

Is there a simple way to rotate a vector? I am not talking about interpolation - just a simple function like:


this would rotate transform.right, 30 degrees, with respect to the transform.forward normal vector …

and return the resultant vector3

You should multiply a quaternion by the vector:

  // rotates dirVector 30 degrees around Y
  dirVector = Quaternion.Euler(0, 30, 0) * dirVector;