• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSDS -API , rotate to aircraft

Messages
4
Hi,
I create some API from FSDS and I need rotate it to aircraft ,
And second question is :how to rotate API to the wind?Or is posible do this in FSDS??

Thanks Paul :confused:
 
Hi,
it is possible but hardly directly from FSDS. You will have to decide, whether You wish just a rotation to aircraft, rotation to the wind or both. You need to decide if Oyu wish to rotate whole object or just a part in it.
For whole object, You will need to correct the API manually and change the line
Code:
RotatedCall( :B 0 0 %5 )
to
Code:
TransformCall( :B  0 0 0  0 0  0 0  0 C74 ) ;for rotate to the wind
or
Code:
RotateToAircraft( :B  0 0 0  0 0 0  0 1 0 );for rotation to the aircraft

In case You need to roate only a part of the whole object, then You will need to change the appropriate Call32( :Part000xxx ) to one of the above two lines, where You should also need to replace :B with the :Part000xxx.
The second thing, if it comes to roataion to the wind, it is possible to do directly in FSDS. You will need to go part properties, then add a condition and there select transformation. In the last row You should enter C74 varible in the bottom right edit box.
If You have parts that also need to be moved, together with base ("parent") part, then You will need to create ownership for the child parts so to tag every child part with parent part. You will need to enter transformation only for the parent part.

Hope it helps and best regards,
 
Hi Gorchi,
Thank you for ansfer,
For now i try rotate to aircraft , workink fine , bud I have another problem ,
the object is sometime visable , sometime not , when I move aircraft around the object in slew mode (in normal mode the same) object is visable , when i move to anoter position ,object is not visable is like flasinkg in 30 second iterval , whats wrong??
 
Sounds like you have set the v2 value of the object too small. I can't remember if FSDS does hardcode this in the API, but try to enter a bigger value for v2 when you place the macro.
 
Paul,
it might be v2 value, it might be having the object not in the center, it might be also coding mistake.
For me right now it looks like the center of the object is dislocated from point (0,0,0) so v2 value is working only at some angle. Check the center location of the object and try to increase v2 value. The latter You can do in two ways.
One is to enlarge v2 value in RefPoint() instruction in API, the second is to draw a polygon which has similar shape of the object in top-down view and name it scenery_icon (check the name using the button right of the box in part proprties) and tag it as reference part, so it won't be visible.
May I ask You, what do You are trying to make, a T sign, windsock, anemomether...? Flashing can have source somewhere else, maybe because of use C74/C72 variables...

Best regards,
 
Back
Top