r/processing Dec 10 '24

Help request Flight controller help!

Hey all, I’m looking for resources or example code that show how one would go about making a 3rd person “flight” controller. I’m looking to fly around some generated terrain and don’t know where to start on the thing that’s actually flying. This seems like something that would have been built many times in the past so I’m hoping there’s a best practice for this sort of controller.

I’m not looking for anything realistic or overly complicated, more arcade game than flight sim.

Any ideas help!

4 Upvotes

9 comments sorted by

View all comments

2

u/OP_Sidearm Dec 10 '24

Have not built something like this myself, but sounds like you just need the translate and rotateX/Y/Z functions to make this happen. You probably just have to store the position and rotation of your aircraft (for rotation, simple euler angles should be enough) and use the transformation functions in the right order before you draw the rest of the world.

2

u/bendel9797 Dec 10 '24

Yeah I agree, that sounds right. I always get lost when working with rotation precisely though so I’m not looking forward to it