Hi all,
I am currently working on a way to integrate a moving third party 3D object (e.g. missile) inside FlightGear.
I have the expected coordinates of the 3D object at every frame from an external application that I integrated into FlightGear C++ code (using a library).
My idea is to create and set several properties (x,y,z position, roll, yaw, pitch) for the 3D object in the property tree in the C++ code directly, and update their values each frame in the C++ code also, according to the inputs from my external app.
However, I absolutely don't know how to link these properties to the actual position and orientation of my 3D object.
I guess this can be done in Nasal but I am not sure how..
Let's say that I will include the 3D object in the aircraft.xml file so that it is loaded with the aircraft.
I had a look at the <animation> tag to see if I could animate the object directly using this tag, but as this only allows for "rotate" and "translate", I would have to compute every frame the translation and rotation matrices. And anyway, I am not sure that I can include nasal inside a rotate and translate animation tag.
I am looking for a more direct link between an object position and orientation, and properties of the property tree.
Any hint ?
Thanks and best regards