A Simple Tank model using the World Editor
From C4 Engine Wiki
Heres a simple tutorial on how to create a simple model of a Tank using the World Editor. A model like this is used in the Simple Tank tutorial.
1. Start C4 and use Ctrl-N to open a new world.
2. Drag out a Box geometry in the top viewport. Use the move and resize tools to make it look like the one in the picture below.
3. Now drag out a Dome geometry in the top viewport. Use the move and resize tools to make it look like the one in the picture below.
4. OK, now drag out a Cylinder geometry in the top-right (labelled z-y). Use the move and resize tools to make it look like the Barrel of the Tank, like the one in the picture below.
5. Good, now add a Location Marker to mark the point where missiles will leave the Tanks Barrel. Open the Marker page from the pages menu in the menu bar at the op right of the World Editor and click on the Location Marker in the panel on the left side of the World Editor as follows:
6. Use the move tool to position the marker at the tip of the Barrel. Be sure to position it in the top viewport and also in the top right viewport, by raising the marker up off the ground level.It should then look like this:
7. With the Marker still selected, press Ctrl-I to open the Node info dialog. On the Node tab, label the Marker "Barrel" like this:
8. In the scene graph in the lower left viewport, select all three geometries using shift-left-click and then press Ctrl-I to open the Node Info dialog. Select the collision tab and change the settings as follows:
9. Still with the geometries selected, double click on the default material in the materials panel on the left side of the World Editor, then select a texture for the tank as shwon below:
Close the Materials panel and press Ctrl-M to apply the texture to the selected geometries.
10. Now, add a Physics page from the pages menu at the top right of the Worl Editor, and then select the Box Shape. Then drag out a Box Shape over the Tank Geometries as shown below.
11. Finally, Press Ctrl-3 to expand the bottom left viewport where the scene graph is. Use the move tool to drag the Dome onto the Box and then to drag the Barrel onto the Dome and then to drag the Marker onto the Barrel, as shown below:
12. OK, you're done. From the menu, slect World > Save to model resources, and save your new model under Tutorial/model as Tank.mdl.
13. You can view your model using the model viewer which you can select from the main C4 menu on the bottom left of your C4 window.










