Go to footer

HELP - xml files

Get help and share your knowledge on these topics

HELP - xml files

Postby rycardoo » 23.01.2014, 14:30

- How to put the settings xml( your Object) for No Free Gridsnapping and placement? ?(
Thanks for the help. :)
rycardoo
 
Posts: 9
Joined: 29.03.2013, 12:16


Postby HawkGer » 23.01.2014, 14:53

Have a look at this post again:
Maniaplanet Forum
User avatar
HawkGer
Site Admin
 
Posts: 629
Joined: 10.04.2010, 08:36


Postby rycardoo » 23.01.2014, 16:20

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
rycardoo
 
Posts: 9
Joined: 29.03.2013, 12:16


Postby HawkGer » 23.01.2014, 17:08

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
User avatar
HawkGer
Site Admin
 
Posts: 629
Joined: 10.04.2010, 08:36


Postby rycardoo » 23.01.2014, 17:20

Ty information HawkGer :thumbsup:
rycardoo
 
Posts: 9
Joined: 29.03.2013, 12:16


Return to Board index

Return to Modding / Graphics / 3D models / Sounds

Who is online

Users browsing this forum: No registered users and 6 guests