8,013
edits
Paradox-01 (talk | contribs) mNo edit summary |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 1,177: | Line 1,177: | ||
|} | |} | ||
The XML code for physics can be written in two styles. | |||
*The '''first style''' mimics the original structure found in extracted ONLV instances. This makes it '''easier to edit old levels and reimport them''' into the game. | |||
*The '''second style''' was created with structured data (nested objects) in mind and is '''suited for totally new levels''' where animated objects must be created in a 3D editor at first. | |||
For documentation purposes, the file here has been trimmed down. | '''Code style 1''' | ||
<?xml version="1.0" encoding="utf-8"?> | |||
<Oni> | |||
<Physics> | |||
<Object> | |||
<Geometry>M3GMDishBase.oni</Geometry> | |||
<Animation>OBANDishBase.oni</Animation> | |||
<Physics>Animated</Physics> | |||
<ScriptId>201</ScriptId> | |||
<Position>-197.729141 128.46283 -2501.46387</Position> | |||
<Rotation>0.7071067 -1.545431E-08 1.545431E-08 0.7071068</Rotation> | |||
<Scale>2.109375</Scale> | |||
<Name>object_DishBase</Name> | |||
</Object> | |||
</Physics> | |||
</Oni> | |||
'''Code style 2''' | |||
:For documentation purposes, the file here has been trimmed down. | |||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni> | <Oni> |
edits