Hey guys,
I am having troubles with some basic flight controls.
When the plane is overhead the yaw is reversed so that left is right.
Do I need to multiply the yaw with the local up vector?
var turnRateX = Input.Mouse.Position.X - 0.5f; // MousePosition is normalised [0 to 1]
var turnRateY = Input.Mouse.Position.Y - 0.5f;
var turnRate = IsBoosting ? maxTurnRateBoosting : maxTurnRate;
turnRateX *= turnRate / 60f * -1f;
turnRateY *= turnRate / 60f * -1f;
YawSpeed = turnRateX;
PitchSpeed = turnRateY;
Yaw += YawSpeed;
Pitch += PitchSpeed;
Entity.Transform.Rotation = Quaternion.RotationYawPitchRoll(Yaw, Pitch, 0);
How do I fix this?