This is what I have wrote to tilt my airplane while going left and right
values of variables used in script after trial and error are
(i.e. its doing Rotation but not yaw …I want to do Yaw also )
public float _y_movement= -1.0f;
public float _z_movement=-1.0f;
public float _rotateSpeed=0.05f;
Quaternion temp_rotate0 = new Quaternion(0.0f, (Input.GetAxis(“Vertical”) / 4) * _y_movement, (Input.GetAxis(“Horizontal”) / 4) * _z_movement, 1.0f);
transform.rotation = Quaternion.Lerp(transform.rotation, temp_rotate0, Time.deltaTime * _rotateSpeed);
With this My plane is doing tilting to left and right But I want my plane to even face left nd right little bit respectively i.e. I want my plane to do yaw
So what should i add to this to make it doing Yaw ?