Hello,
I am developing a custom plane (a hangdlider -_-) for Aerofly, and I am now trying to add some virtual controls it, so that virtual reality works. However, unlike traditional airplanes that have a stick to control the aircraft, hanggliders have a bar, which is horizontal and held by the pilot with two hands. I started to fiddle with control_cylinder in the file controls.tmd, but I am now stuck because I couldn't really figure out what are all the parameters that it takes.
Could someone explain how control cylinder works in more details (I couldn't find the necessary details in the documentation unfortunately):
- How does B0 work ? I understand that it is the transform of the cylinder, but then in what direction is the cylinder when B0 is the identity ?
- What are Direction and Direction2 ? If B0 already handles the orientation of the cylinder, then why are those two needed ? Are theyused to give the two axes along which the virtual stick can be moved ?
- To simulate the bar of the hangglider, I have set the type of the cylinder to "stick" (i.e. <[string8][Type][stick]>). Is there something else that would be more appropriate in my case ? And what does that exactly mean ?
That's a lot of questions, but I really want to bang my head at the wall trying to understand how all those config files work without a precise documentation. Also, the controls cannot be easily visualized or debugged within Aerofly, so it is really hard to know what are the effects of my changes in the TMD file...
Anyway, I would be very grateful if anyone could shed some light on those mysteries :)...
Cheers,
Antoine Brunner