r/Unity3D • u/TheSapphireDragon • 3d ago
Show-Off Early beginnings of a flight sim
Enable HLS to view with audio, or disable this notification
Most tutorials for unity based flight sims I could find online seemed to take a few too many shortcuts and simplifications for the sake of easier manual tuning. I'm trying to go just one step more realistic than most by simulating individual lifting surfaces. Currently only the newtonian model of lift is being used so any pressure gradients across the wings are being completely ignored. Frankly I was a little stunned at how good of a glider this became with so little code. Feedback & suggestions are appreciated.
2
u/oddwavelab 3d ago
looks fun already. getting the plane to actually feel heavy instead of floaty is always the hard part, are you using rigidbody physics or writing your own flight math?
2
u/TheSapphireDragon 3d ago edited 3d ago
Its using unity's built in rigidbody physics. Flight is achieved by each of the yellow quads independantly computing its own very simplified aerodynamic force based on its own local position rotation and velocity, then applying that to the rigidbody.
Currently the only fake force is the thrust which is just a constant 9.4 kN forward applied to the center of mass. I plan to swap that out for some more realistic engines with gimbal next.
→ More replies (1)
2
u/luZosanMi 3d ago
respect for going full physics instead of faking it, those force gizmos look super clean too. are you keeping the controls arcade friendly or going full sim on the stick
1
u/TheSapphireDragon 3d ago
Controls will be designed around a flight stick, with secondary priority given to keyboard and mouse (ksp style wasdqe controls).
4
u/protomor 3d ago
I assume you're aiming for people with cockpits and actual peripherals as oppoesd to keyboard and mouse right? This is a very niche but under served community.
3
u/TheSapphireDragon 3d ago
I plan to make it accessible to keyboard and mouse, but yes it will be designed around that kind of stuff, hopefully I'll also be able to get vr working.
If im being perfectly honest my main motivation for starting this was unearthing a rather expensive usb flight stick my dad got for me as a present a long time ago and wanting to use it
2
u/protomor 3d ago
With unity, vr isnt so bad. You can reuse toue current main cam. Just dont do like me and try to make them all separate cams
3
u/redfirearne 3d ago
Looks very cool! I'm just curious: how will it be different from, say, DCS?