I’m trying to build a pretty basic flight simulator. I’ve got a model of a plane that I built in Blender with different objects for parts of the plane: fuselage, wings, ailerons, elevators, etc. I exported it as a .obj file and I’m able to load and render the entire model using
ObjLoader and a
I’m trying to figure out the best way to start modifying the mesh based on the inputs so that the control surfaces rotate in place as the plane maneuvers. A quick (though probably not the most efficient) idea is to export with objects as groups and then load each group into its own mesh and render them all individually. Then I can rotate each piece individually (though I’m not sure how I’ll figure out the proper origin for the rotations) before rendering it.
What’s a better way to do this?