Model XML

Model XML is a way of specifying special load attributes for a specific model without modifying the model directly in an editor. This can be particularly useful if you want to define custom animations or groups in the model format. It can also be used if you need to scale or rotate the model before using it in the game.

Example XML

<?xml version="1.0" encoding="utf-8"?>
<model src="peasant_anim_01.ms3d">
    <animation src="peasant.frames">
        <sequence name="test" start="0" end="100" fps="24" />
    </animation>
    <groups default="false">
        <group name="body_01" visible="true" />
        <group name="hand_01" visible="true" />
        <group name="head_01_01" visible="true" />
        <group name="pants_05" visible="true" />
        <group name="shoes_03" visible="true" />
        <group name="beard_01_02" visible="true" />
        <group name="hair_03" visible="true" />
    </groups>
    <transform>
        <rotate x="90" />
        <scale x="1.1" y="1.1" z="1.1" />
    </transform>
</model>