Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/earth.oxw @ 8398

Last change on this file since 8398 was 8398, checked in by youngk, 13 years ago

Added 1to100 scale model of earth, complete with gravity.

File size: 1.5 KB
Line 
1<LevelInfo
2 name = "Earth Demonstration"
3 description = "1:100 Scale Model of Earth with Gravity"
4 tags = "earth, gravity"
5/>
6
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11  include("templates/spaceshipHXY.oxt")
12?>
13
14<Level
15 name         = "Planet Earth"
16 description  = "1:100 Scale Model of Earth with Gravity"
17>
18  <templates>
19    <Template link="lodtemplate_default" />
20  </templates>
21
22  <Scene
23    ambientlight = "0.8, 0.8, 0.8"
24    skybox       = "Orxonox/skypanoramagen1"
25  >
26    <Light
27      type="directional"
28      position="-500000,-500000,0"
29      direction="0.253, 0.593, -0.765"
30      diffuse="1.0, 0.9, 0.9, 1.0"
31      specular="1.0, 0.9, 0.9, 1.0"
32    />
33
34    <SpawnPoint
35      position="70000,0,0"
36      lookat="0,0,0"
37      spawnclass="SpaceShip"
38      pawndesign="spaceshipHXY"
39    />
40
41    <Planet
42      position="0,0,0"
43      scale="63000"
44      collisionType="dynamic"
45      linearDamping="0.8"
46      angularDamping="0"
47      mass="5.9e21"
48      pitch="0"
49      mesh="earth.mesh"
50      atmosphere="atmosphere1"
51      rotationaxis="0,1,0"
52      rotationrate="0.2"
53      atmospheresize="300.0f"
54      imagesize="1024.0f"
55    >
56      <attached>
57        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
58      </attached>
59      <collisionShapes>
60        <SphereCollisionShape radius="63000" position="0,0,0" />
61      </collisionShapes>
62    </Planet>
63  </Scene>
64</Level>
Note: See TracBrowser for help on using the repository browser.