Unrestricted 6DOF with TIR
Posted: Tue Mar 30, 2010 5:19 pm
FC2 now allows you to use TIR with 6DOF even for the aircraft without 3D cockpits. The Black Shark already has 6DOF, and after looking in the server.lua if you copy the code for the KA-50 to the other planes it allows you to have full 6DOF even in the F-15 (and other planes). There will be some "gaps" behind the dash and some missing parts since the cockpits are still 2D (unlike the Black Shark's 3D cockpit), but this tweak allows you to have full 6DOF control and the ability to lean around the canopy bow!
Edit your server.lua as follows (and don't forget to backup your original file first):
Find these original contents of the server.lua
Replace the lines above with:
Basically, what's done here is copying the line for 6DOF used for the KA-50 found in the original file and using it for all the other airplanes too (instead of the value [= old_aircrafts_6DOF]). You can also change the values to limit the x-, y-, z-, and roll- axes for 6DOF as needed when testing.
For example, to limit 6DOF roll try lowering the value from 90. 0 degrees to 70. 0 for example. You can also limit the other 6DOF limits to find more realistic limits for how much a pilot would be able to move his head around inside the F-15 cockpit with a helmet on. We may want to lower some of the values to reduce 2D cockpit clipping also, but still be able to lean around the canopy bow!
Edit your server.lua as follows (and don't forget to backup your original file first):
Find these original contents of the server.lua
Code: Select all
limits_6DOF = {}
limits_6DOF[PlaneIndex.iSu_27] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iSu_33] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iSu_25] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iSu_39] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iMiG_29] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iMiG_29K] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iA_10] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iF_15] = old_aircrafts_6DOF
limits_6DOF[PlaneIndex.iKA_50] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
Code: Select all
limits_6DOF = {}
limits_6DOF[PlaneIndex.iSu_27] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.20,0.20},roll = 90.0}
limits_6DOF[PlaneIndex.iSu_33] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
limits_6DOF[PlaneIndex.iSu_25] = {x = {-0.02,0.15},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
limits_6DOF[PlaneIndex.iSu_39] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
limits_6DOF[PlaneIndex.iMiG_29] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
limits_6DOF[PlaneIndex.iMiG_29K] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
limits_6DOF[PlaneIndex.iA_10] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
limits_6DOF[PlaneIndex.iF_15] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
limits_6DOF[PlaneIndex.iKA_50] = {x = {-0.02,0.35},y = {-0.15,0.21},z = {-0.26,0.26},roll = 90.0}
For example, to limit 6DOF roll try lowering the value from 90. 0 degrees to 70. 0 for example. You can also limit the other 6DOF limits to find more realistic limits for how much a pilot would be able to move his head around inside the F-15 cockpit with a helmet on. We may want to lower some of the values to reduce 2D cockpit clipping also, but still be able to lean around the canopy bow!