Page 1 of 1

HELP - xml files

PostPosted: 23.01.2014, 14:30
by rycardoo
- How to put the settings xml( your Object) for No Free Gridsnapping and placement? ?(
Thanks for the help. :)

PostPosted: 23.01.2014, 14:53
by HawkGer
Have a look at this post again:
Maniaplanet Forum

PostPosted: 23.01.2014, 16:20
by rycardoo
Sorry, I need to put in my xml file the parameters for No Free Gridsnapping and free placement.
example XML definition file:
<Item Type="StaticObject" Collection="Stadium">
<Phy>
<MoveShape Type="mesh" File="Meshes/myobject.Shape.gbx"/>
</ Phy>
<Vis>
<Mesh File="Meshes/myobject.Mesh.gbx"/>
</ Vis>
<Pivots>
<Pivot Pos="0 0 0"/>
<Pivot Pos="0 0 -1.5"/>
<Pivot Pos="0 0 1.5"/>
</ Pivots>
<GridSnap HStep="8" VStep="4" />
</ Item>

How to put in my xml:
No Gridsnapping (place it wherever you want)
Free placement (in the air, wherever you want^^)



I hope you understand and sorry for my english.

Thanks for the reply

PostPosted: 23.01.2014, 17:08
by HawkGer
ah okay, I see.
Here is an example that should do the trick:


<Item Type="" Collection="">
<Phy>
<MoveShape Type="mesh" File=""/>
</Phy>
<Vis>
<Mesh File=""/>
</Vis>

<Pivots>
<Pivot Pos="0 0 0"/>
<Pivot Pos="0 -1 0"/>
<Pivot Pos="0 -0.8 0"/>
<Pivot Pos="0 -0.6 0"/>
<Pivot Pos="0 -0.4 0"/>
<Pivot Pos="0 -0.2 0"/>
<Pivot Pos="0 0 0"/>
<Pivot Pos="0 0.2 0"/>
<Pivot Pos="0 0.4 0"/>
<Pivot Pos="0 0.6 0"/>
<Pivot Pos="0 0.8 0"/>
<Pivot Pos="0 1 0"/>
<Pivot Pos="0 0 0"/>
</Pivots>
<GridSnap HStep="0" VStep="0" />
<Levitation VStep="2" GhostMode="true" />
<Options ManualPivotSwitch="true" />
</Item>

You can remove the pivots if you want to ofc and adjust the Vstep for the levitation.
gl

PostPosted: 23.01.2014, 17:20
by rycardoo