• 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.

Christian Bahr

Resource contributor
Hi!
A small step forward in my current project ... a clock as a SimObject ....


If you are interested, here is the code:
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo version="1.1" guid="{59589256-fb71-4d94-99d8-953dc12312be}">

<LODS>
<LOD MinSize="0" ModelFile="edle_analog_uhr.gltf"></LOD>
</LODS>

<Animation name="mh_tower_stunde" guid="e8fc23f9-02fa-47ad-8ad0-491a299a3247" typeParam2="mh_tower_stunde" length="120" type="Sim" typeParam="AutoPlay" />
<Animation name="mh_tower_minute" guid="b1febb79-6e28-4c49-a9d9-2ac42fa7b251" typeParam2="mh_tower_minute" length="60" type="Sim" typeParam="AutoPlay" />

<PartInfo>
<Name>mh_tower_stunde</Name>
<AnimLength>120</AnimLength>
<Animation>
<Parameter>
<Code>
(E:LOCAL TIME, hour) 12 % 10 *
</Code>
</Parameter>
</Animation>
</PartInfo>

<PartInfo>
<Name>mh_tower_minute</Name>
<AnimLength>60</AnimLength>
<Animation>
<Parameter>
<Code>
(E:LOCAL TIME, minutes) flr 60 %
</Code>
</Parameter>
</Animation>
</PartInfo>
</ModelInfo>

I fished the formulas for calculating the hours and minutes out of the forum somewhere, many thanks to the author of these formulas!!!
 
Top