Changing the Size of a Terrain

We’ll use the ScaleEntity command to change the size of a terrain. In the example we’ve been using, we’ll scale the terrain by 15 times on the y axis and 10 times on the x and z axes by adding the following code (in bold):

; Creating the terrain
ground=CreateTerrain(512)
PositionEntity ground, -500,0,-500
ScaleEntity ground, 10,15,10

Using the ScaleEntity command, you can increase or decrease the size of your playing field.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.105.159