As seen in the following video, there are some quirks in my plane system using a BodyVelocity and BodyGyro.
The following is my code for the plane turning:
bodyGyro.CFrame = CFrame.new(
mainPart.CFrame.Position,
mouse.Hit.Position,
) * CFrame.Angles(0,0,math.clamp(mainPart.RotVelocity.Y*2, -rad90Deg, rad90Deg))
And here is the code for the BodyVelocity:
bodyVelocity.Velocity = lookVector * thrust
As seen in this video(https://streamable.com/lxohjg), there are several bugs such as:
- The plane refuses to go upside down
- The plane wiggling right to left when going downwards
- The plane getting stuck when going up
- The plane not knowing what to do when you move your cursor quickly
Any answers help!