Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Adding Collision Shapes to Planets. Doesn't currently work.

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1<LevelInfo
2 name = "Planet Demonstration"
3 description = "Demonstration of Planets"
4 tags = "planets"
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"
16 description  = "Demonstration of Planets"
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
27    <WorldAmbientSound
28      ambientSource="AlphaCentauri.ogg"
29      looping="true"
30      playOnLoad="true"
31    />
32   
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    />
40
41    <SpawnPoint
42      position="1500,0,0"
43      lookat="0,0,0"
44      spawnclass="SpaceShip"
45      pawndesign="spaceshipHXY"
46    />
47
48    <Planet
49      position="0,0,0"
50      scale="1000"
51      collisionType="dynamic"
52      linearDamping="0.8"
53      angularDamping="0"
54      mass="200"
55      pitch="0"
56      mesh="jupiter.mesh"
57      atmosphere="atmosphere1"
58      rotationaxis="1,0,0"
59      rotationrate="1.0"
60      atmospheresize="300.0f"
61      imagesize="1024.0f"
62    >
63      <collisionShapes>
64        <SphereCollisionShape radius="1000" position="0,0,0" />
65      </collisionShapes>
66    </Planet>
67
68    <Planet
69      position="10000,0,0"
70      scale="100"
71      pitch="0"
72      mesh="ganymede.mesh"
73      atmosphere="atmosphere1"
74      rotationaxis="1,0,0"
75      rotationrate="1.0"
76      atmospheresize="224.0f"
77      imagesize="1024.0f"
78    />
79  </Scene>
80</Level>
Note: See TracBrowser for help on using the repository browser.