Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/modularships/data/levels/emptyLevel.oxw @ 9995

Last change on this file since 9995 was 9995, checked in by noep, 10 years ago

Modified collision-detecting-process, such that collisions can be traced back to single child-CollisionShapes of Compound-CollisionShapes

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1<LevelInfo
2 name = "Empty level"
3 description = "A level with absolutely nothing in it."
4 tags = "test"
5 screenshot = "emptylevel.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12?>
13
14<?lua
15  include("templates/spaceshipAssff2.oxt")
16  include("templates/spaceshipPirate.oxt")
17  include("templates/spaceshipEscort.oxt")
18?>
19
20<Level>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
26  <Scene
27    ambientlight = "0.8, 0.8, 0.8"
28    skybox       = "Orxonox/Starbox"
29  >
30
31    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
32    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
33   
34    <MovableEntity position="0,0,0" collisionType=dynamic scale=1 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
35    <attached>
36        <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
37        <StaticEntity position="0,90,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
38            <attached>
39                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
40            </attached>
41            <collisionShapes>
42                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
43            </collisionShapes>
44        </StaticEntity>
45    </attached>
46    <collisionShapes>
47        <BoxCollisionShape position="0,0,0" halfExtents="40,40,40" />
48    </collisionShapes>
49    </MovableEntity>
50   
51    <Pawn health=30 position="0,-50,0" direction="0,-1,0" collisionType=dynamic mass=1000 name=box radarname = "Box 4" >
52        <attached>
53            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
54        </attached>
55        <collisionShapes>
56            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
57        </collisionShapes>
58    </Pawn>
59   
60  </Scene>
61</Level>
62
Note: See TracBrowser for help on using the repository browser.