Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/physicstest2.oxw @ 5301

Last change on this file since 5301 was 5295, checked in by rgrieder, 16 years ago

More physics testing xml code.

  • Property svn:eol-style set to native
File size: 7.2 KB
Line 
1<?lua
2  include("levels/spaceshiptemplates.oxw")
3?>
4<?lua
5  include("levels/hudtemplates.oxw")
6?>
7
8<Level
9 name         = "Sample"
10 description  = "Just a few tests"
11>
12  <Scene
13   ambientlight = "0.5, 0.5, 0.5"
14   skybox       = "Orxonox/Starbox"
15   negativeWorldRange = "(-100000, -100000, -100000)"
16   positiveWorldRange = "( 100000,  100000,  100000)"
17   hasPhysics   = true
18  >
19 
20    <LinearEntity
21     name            = "blubb"
22     position        = "-250, 30, -500"
23     collisionType   = "kinematic"
24     mass            = 10
25     velocity        = "100, 0, 0"
26    >
27      <attached>
28        <Model name = "moedeli" position="0,0,0" scale=10 mesh="ast1.mesh" />
29        <StaticEntity name="hahaha" position="0,0,0" collisionType="static">
30          <collisionShapes>
31            <SphereCollisionShape name="firstSphere" radius=20/>
32          </collisionShapes>
33        </StaticEntity>
34      </attached>
35     
36      <!--collisionShapes>
37        <SphereCollisionShape name = "secondSphere" radius=0.4 position="1,1,1"/>
38        <CompoundCollisionShape position="4,4,4">
39          <SphereCollisionShape name = "thirdSphere" radius=1.0/>
40        </CompoundCollisionShape>
41      </collisionShapes-->
42    </LinearEntity>
43 
44    <LinearEntity
45     name            = "blubb2"
46     position        = "250, 0, -500"
47     collisionType   = "dynamic"
48     mass            = 10
49     velocity        = "-100, 0, 0"
50    >
51      <attached>
52        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
53      </attached>
54      <collisionShapes>
55        <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/>
56      </collisionShapes>
57    </LinearEntity>
58   
59    <StaticEntity
60     name            = "blubbStatic"
61     position        = "50, -20, -500"
62     collisionType   = "static"
63     mass            = 10
64    >
65      <attached>
66        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
67      </attached>
68      <collisionShapes>
69        <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/>
70      </collisionShapes>
71    </StaticEntity>
72   
73    <!--SpawnPoint position="0,   0,  100"           spawnclass=SpaceShip pawndesign=spaceshipassff />
74    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
75    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
76
77    <!--LinearEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
78      <events>
79        <activity>
80          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
81        </activity>
82      </events>
83      <attached>
84        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
85        <PositionableEntity position="0,0,100">
86          <attached>
87            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
88            <LinearEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
89              <attached>
90                <Model position="0,35,0" scale=2 mesh="ast1.mesh" />
91                <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
92                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
93                  <attached>
94                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
95                  </attached>
96                </Model>
97                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
98                  <attached>
99                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
100                  </attached>
101                </Model>
102              </attached>
103            </LinearEntity>
104          </attached>
105        </PositionableEntity>
106        <LinearEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
107          <attached>
108            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
109            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
110            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
111            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
112          </attached>
113        </LinearEntity>
114      </attached>
115    </LinearEntity-->
116
117
118    <!--ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
119    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
120    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
121    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
122    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /-->
123
124
125    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
126      <events>
127        <spawn>
128          <EventTrigger delay=1>
129            <events>
130              <trigger>
131                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
132              </trigger>
133            </events>
134          </EventTrigger>
135        </spawn>
136      </events>
137    </ParticleSpawner>
138
139
140    <!--ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
141      <events>
142        <activity>
143          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
144        </activity>
145      </events>
146    </ParticleEmitter>
147    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
148      <events>
149        <activity>
150          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
151        </activity>
152      </events>
153    </ParticleEmitter>
154    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
155      <events>
156        <activity>
157          <EventListener event=firetrigger1 />
158          <EventListener event=firetrigger2 />
159        </activity>
160      </events>
161    </ParticleEmitter-->
162
163
164    <!--EventDispatcher>
165      <targets>
166        <EventTarget name=fireright />
167        <EventTarget name=firecenter />
168        <EventTarget name=fireleft />
169      </targets>
170      <events>
171        <activity>
172          <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
173        </activity>
174      </events>
175    </EventDispatcher-->
176
177
178    <!--Model position="0,50,0" scale=3 mesh="assff.mesh">
179      <events>
180        <visibility>
181          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
182        </visibility>
183      </events>
184    </Model-->
185
186
187    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
188    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
189    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
190    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
191    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
192    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
193
194    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
195
196    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
197    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
198    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
199
200  </Scene>
201</Level>
Note: See TracBrowser for help on using the repository browser.