Christian Bahr
Resource contributor
- Messages
- 994
- Country
Hi!
A small step forward in my current project ... a clock as a SimObject ....
If you are interested, here is the code:
I fished the formulas for calculating the hours and minutes out of the forum somewhere, many thanks to the author of these formulas!!!
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!!!