Hello everyone,
I’m looking for help on a mouse flight control model, it was inspired by war thunder. It is a genius way to control planes, war thunder did it really well. So I was trying to replicate that behavior for my project, but it failed really bad.
Below is War Thunder’s mouse aim flight control
the circle is where the mouse is aiming so to speak and the little cross is the plane’s heading. It is able to snap right into the circle.
And here is my attempt to replicate:
I use the angle needed to turn as a scaling factor, larger the angle, more aggressive turns the plane will do. So when the turn is nearly complete it can do smaller, more controlled turns and smooth into position. But it wobbles itself out of the screen most of the time. I’ve been playing with the parameters a while, I’m sure there’s can be improvements by tuning the parameters but I’m wondering if there’s better methods to approach this.
Also some info on the plane, I have a simple aerodynamic simulation implemented so I’m controlling the plane’s Pitch, Yaw, Roll with control surfaces. Not sure if this matters.
Any help is greatly appreciated!!! Thank you !
(Apologies for grammar issues, English is not my first language)
Hello, I’m also a War Thunder player learning Unreal Engine, could you please send me the blueprint for your implementation of this control method? I really can’t find any tutorial
Sorry, It’s being a long time I moved on to other projects but I can provide info on what I ended up doing. Basically I find a PID controller is the best option, just have to tweak some values and you can get some very responsive and agile control. Let me know if you need more info
I would recommend running another event to track the plane to stablize it if you do end up getting back into this, for that you can track the z and keep the x and y where they need to be such as by adjusting the rotation and then only adjusting based off the Z which in turn only adjusts the left to right movement x and y are more for 3d movement and if you want to do that i would run other stuff. but thats prolly not very helpful now that you quit working on it. good luck to what your working on now.