- Messages
- 531
- Country
Hello,
My aircraft has "steam" instrument, such as airspeed indicator, that works with a needle. In my interior XML model, I could animate it according to the aircraft airspeed by using Asobo templates, exactly like it is done in the Cessna. To be honest, I didn't understand everything I did but it (almost) works fine. The problem I have is the non-linearity, the airspeed indicator is not linear, so the speed indication is correct below 160 kts and wrong after.
For this reason, and for other reasons, I would like to have the needle animated using a local variable. I mean that I would like to have a variable that just indicates the rotation angle for the needle, and my code will set the necessary value to have it animated correctly.
Is that possible? (I guess the answer is yes)
Would you have a sample XML code that shows how to do this?
Any help is welcome, I am not an expert in this area...
My aircraft has "steam" instrument, such as airspeed indicator, that works with a needle. In my interior XML model, I could animate it according to the aircraft airspeed by using Asobo templates, exactly like it is done in the Cessna. To be honest, I didn't understand everything I did but it (almost) works fine. The problem I have is the non-linearity, the airspeed indicator is not linear, so the speed indication is correct below 160 kts and wrong after.
For this reason, and for other reasons, I would like to have the needle animated using a local variable. I mean that I would like to have a variable that just indicates the rotation angle for the needle, and my code will set the necessary value to have it animated correctly.
Is that possible? (I guess the answer is yes)
Would you have a sample XML code that shows how to do this?
Any help is welcome, I am not an expert in this area...