Flight Controller Help

Hey everyone!

https://playcanvas.com/editor/scene/2039037

The flight controller doesn’t work very well, so flying the plane is hard (the little on-screen circle is a joystick, with vertical inversion so pulling back flies up). Any suggestions?

The airplane is torqued in the UI.js script (based on the joystick input), the thrust is added in thrust.js, and the camera_follow.js tries to adjust the camera position and rotation. I’m able to get the airplane out of view very easily though, not sure why.

I have a real-world remote controlled airplane with a radio controller that has a single joystick, and flies very much like this. Trying to recreate the experience.

If anyone wants to fork and collaborate, feel free!

Thanks!!

Oh… I think I know what’s happening here:

The camera is clipping the red plane based on distance from camera.

I just changed camera Far Clip to 10,000, and it sorta helps, but I can still see a little flicker.

I edited the original post, I’ll deal with the flicker later. Need to fix this flight controller + camera.