Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/mac_osx2/data/levels/planets.oxw @ 10422

Last change on this file since 10422 was 8391, checked in by youngk, 14 years ago

Added gravitational pull to both planets. This is getting fun!

  • Property svn:eol-style set to native
File size: 2.1 KB
RevLine 
[8389]1<LevelInfo
2 name = "Planet Demonstration"
3 description = "Demonstration of Planets"
4 tags = "planets"
5/>
6
[8114]7<?lua
[8389]8  include("stats.oxo")
[8134]9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
[8389]11  include("templates/spaceshipHXY.oxt")
[8114]12?>
13
14<Level
[8389]15 name         = "Planet"
16 description  = "Demonstration of Planets"
[8114]17>
18  <templates>
[8389]19    <Template link="lodtemplate_default" />
[8114]20  </templates>
21
22  <Scene
[8389]23    ambientlight = "0.8, 0.8, 0.8"
24    skybox       = "Orxonox/skypanoramagen1"
[8114]25  >
[8389]26
27    <WorldAmbientSound
28      ambientSource="AlphaCentauri.ogg"
29      looping="true"
30      playOnLoad="true"
31    />
[8114]32   
[8389]33    <Light
34      type="directional"
35      position="-10000,-10000,0"
36      direction="0.253, 0.593, -0.765"
37      diffuse="1.0, 0.9, 0.9, 1.0"
38      specular="1.0, 0.9, 0.9, 1.0"
39    />
[8114]40
[8389]41    <SpawnPoint
42      position="1500,0,0"
43      lookat="0,0,0"
44      spawnclass="SpaceShip"
45      pawndesign="spaceshipHXY"
46    />
[8114]47
[8389]48    <Planet
49      position="0,0,0"
50      scale="1000"
51      collisionType="dynamic"
52      linearDamping="0.8"
53      angularDamping="0"
[8391]54      mass="10000000"
[8389]55      pitch="0"
[8391]56      mesh="Muunilinst.mesh"
[8389]57      atmosphere="atmosphere1"
58      rotationaxis="1,0,0"
59      rotationrate="1.0"
60      atmospheresize="300.0f"
61      imagesize="1024.0f"
62    >
[8391]63      <attached>
64        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
65      </attached>
[8389]66      <collisionShapes>
67        <SphereCollisionShape radius="1000" position="0,0,0" />
68      </collisionShapes>
69    </Planet>
[8114]70
[8389]71    <Planet
72      position="10000,0,0"
73      scale="100"
[8390]74      collisionType="dynamic"
75      linearDamping="0.8"
76      angularDamping="0"
[8391]77      mass="5000000"
[8389]78      pitch="0"
79      mesh="ganymede.mesh"
80      atmosphere="atmosphere1"
81      rotationaxis="1,0,0"
82      rotationrate="1.0"
83      atmospheresize="224.0f"
84      imagesize="1024.0f"
[8390]85    >
[8391]86      <attached>
87        <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
88      </attached>
[8390]89      <collisionShapes>
90        <SphereCollisionShape radius="100" position="0,0,0" />
91      </collisionShapes>
92    </Planet>
[8114]93  </Scene>
94</Level>
Note: See TracBrowser for help on using the repository browser.