Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8498 was 8498, checked in by dafrick, 13 years ago

Removing some tags because the cause warnings for now, might be re-added, see http://forum.orxonox.net/viewtopic.php?f=24&t=613

File size: 3.0 KB
Line 
1<LevelInfo
2 name = "Earth Demonstration"
3 description = "1:100 Scale Model of Earth with Gravity"
4 tags = "showcase"
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  <Template name=PortalDefault>
23      <PortalEndPoint>
24          <attached>
25              <Billboard material="Portals/Default" />
26          </attached>
27      </PortalEndPoint>
28  </Template>
29
30  <Scene
31    ambientlight = "0.8, 0.8, 0.8"
32    skybox       = "Orxonox/skyboxempty"
33  >
34    <WorldAmbientSound
35      source="Earth.ogg"
36      looping="true"
37      playOnLoad="true"
38    />
39
40    <Light
41      type="directional"
42      position="-500000,-500000,0"
43      direction="0.253, 0.593, -0.765"
44      diffuse="1.0, 0.9, 0.9, 1.0"
45      specular="1.0, 0.9, 0.9, 1.0"
46    />
47
48
49
50    <SpawnPoint
51      position="70000,0,0"
52      lookat="0,0,0"
53      spawnclass="SpaceShip"
54      pawndesign="spaceshipHXY"
55    />
56    <PortalEndPoint position="70500,100,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/>
57
58    <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
59    <Planet
60      position="0,0,0"
61      scale="63000"
62      collisionType="dynamic"
63      linearDamping="0.8"
64      angularDamping="0"
65      mass="5.9e21"
66      pitch="0"
67      mesh="planets/earth.mesh"
68      atmosphere="atmosphere1"
69      rotationaxis="0,1,0"
70      rotationrate="0.2"
71      atmospheresize="80.0f"
72      imagesize="1024.0f"
73      collisiondamage = 2
74      enablecollisiondamage = true
75    >
76      <attached>
77        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
78      </attached>
79      <collisionShapes>
80        <SphereCollisionShape radius="63000" position="0,0,0" />
81      </collisionShapes>
82    </Planet>
83
84    <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 -->
85    <Planet
86      position="3625700,0,0"
87      scale="17370"
88      collisionType="dynamic"
89      linearDamping="0.8"
90      angularDamping="0"
91      mass="7.36e19"
92      pitch="0"
93      mesh="planets/moon.mesh"
94      atmosphere="atmosphere1"
95      rotationaxis="0,1,0"
96      rotationrate="0.2"
97      atmospheresize="80.0f"
98      imagesize="1024.0f"
99      collisiondamage = 2
100      enablecollisiondamage = true
101    >
102      <attached>
103        <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
104      </attached>
105      <collisionShapes>
106        <SphereCollisionShape radius="17370" position="0,0,0" />
107      </collisionShapes>
108    </Planet>
109    <PortalEndPoint position="3603330,100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/>
110
111    <!-- Create portals from Earth to the Moon -->
112    <PortalLink fromID="1" toID="2" />
113    <PortalLink fromID="2" toID="1" />
114  </Scene>
115</Level>
Note: See TracBrowser for help on using the repository browser.