Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/PresentationFS18/data/levels/old/physicsTest2.oxw @ 12202

Last change on this file since 12202 was 7679, checked in by dafrick, 14 years ago

Renaming levelfiles (and some other) according to our new naming conventions which is using camelCase, without '_' or spaces.

  • Property svn:eol-style set to native
File size: 9.9 KB
Line 
1<?lua
2  include("spaceshipTemplatesPhysics.oxw")
3?>
4<?lua
5  include("HUDTemplates3.oxo")
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      <!--SpawnPoint position="0,   0,  100"           spawnclass=SpaceShip pawndesign=spaceshipassff />
20    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
21    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
22
23    <!-- axes in ogre's origin of coordinate system for phsics engine testing purposes-->
24    <StaticEntity
25     position        = "0,0,0"
26     name            = "banana"
27     collisionType   = "static"
28     mass            = 1000
29    >
30      <attached>
31        <Model position="0,0,0" scale=100 mesh="plane.mesh" />
32        <Model position="0,-0.0001,0" roll=180 scale=100 mesh="plane.mesh" />
33      </attached>
34      <collisionShapes>
35        <PlaneCollisionShape name="thePlane" planeNormal="0,1,0" planeOffset=0 />
36      </collisionShapes>
37    </StaticEntity>
38
39    <!-- red sphere for phsics engine testing purposes-->
40    <!--StaticEntity position="40,0,0">
41      <attached>
42        <Model position="0,0,0" scale=1 mesh="sphere.mesh" />
43      </attached>
44    </StaticEntity-->
45
46    <!-- yellow cube for phsics engine testing purposes-->
47    <!--StaticEntity position="80,0,0">
48      <attached>
49        <Model position="0,0,0" scale=1 mesh="cube.mesh" />
50      </attached>
51    </StaticEntity-->
52
53    <MovableEntity
54     name            = "blubb"
55     position        = "-150, 20, -500"
56     collisionType   = "kinematic"
57     mass            = 10000
58     velocity        = "30, 0, 0"
59    >
60      <attached>
61        <Model name = "moedeli" position="0,0,0" scale=20 mesh="sphere.mesh" />
62        <StaticEntity name="hahaha" position="0,0,0" collisionType="static">
63          <collisionShapes>
64            <SphereCollisionShape name="firstSphere" radius=20/>
65          </collisionShapes>
66        </StaticEntity>
67      </attached>
68
69      <!--attached>
70        <SphereCollisionShape name = "secondSphere" radius=0.4 position="1,1,1"/>
71        <CompoundCollisionShape position="4,4,4">
72          <SphereCollisionShape name = "thirdSphere" radius=1.0/>
73        </CompoundCollisionShape>
74      </attached-->
75    </MovableEntity>
76
77    <MovableEntity
78     name            = "blubb2"
79     position        = "150, 30, -500"
80     collisionType   = "dynamic"
81     mass            = 10
82     velocity        = "-30, 0, 0"
83    >
84      <attached>
85        <Model position="0,0,0" scale=20 mesh="sphere.mesh" />
86      </attached>
87      <collisionShapes>
88        <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/>
89      </collisionShapes>
90    </MovableEntity>
91
92    <StaticEntity
93     name            = "blubbStatic"
94     position        = "0, 15, -500"
95     collisionType   = "Static"
96     mass            = 10
97    >
98      <attached>
99        <Model position="0,0,0" scale=20 mesh="sphere.mesh" />
100      </attached>
101      <collisionShapes>
102        <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/>
103      </collisionShapes>
104    </StaticEntity>
105
106    <!--SpawnPoint position="0,   0,  100"           spawnclass=SpaceShip pawndesign=spaceshipassff />
107    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
108    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
109
110    <MovableEntity
111     name            = "apple1"
112     position        = "-150, 80, -500"
113     collisionType   = "dynamic"
114     mass            = 10
115     velocity        = "30, 0, 0"
116    >
117      <attached>
118        <Model position="0,0,0" scale=20 mesh="sphere.mesh" />
119      </attached>
120      <collisionShapes>
121        <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/>
122      </collisionShapes>
123    </MovableEntity>
124
125    <MovableEntity
126     name            = "apple2"
127     position        = "50, 80, -500"
128     collisionType   = "dynamic"
129     mass            = 10
130     velocity        = "-30, 0, 0"
131    >
132      <attached>
133        <Model position="0,0,0" scale=20 mesh="sphere.mesh" />
134      </attached>
135      <collisionShapes>
136        <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/>
137        <SphereCollisionShape name = "secondSphere" radius=20 position="1,0,0"/>
138      </collisionShapes>
139    </MovableEntity>
140
141    <MovableEntity
142     name            = "apple3"
143     position        = "150, 80, -500"
144     collisionType   = "dynamic"
145     mass            = 10
146     velocity        = "-30, 0, 0"
147    >
148      <attached>
149        <Model position="0,0,0" scale=20 mesh="sphere.mesh" />
150      </attached>
151      <collisionShapes>
152        <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/>
153      </collisionShapes>
154    </MovableEntity>
155
156    <!--MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
157      <events>
158        <activity>
159          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
160        </activity>
161      </events>
162      <attached>
163        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
164        <StaticEntity position="0,0,100">
165          <attached>
166            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
167            <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
168              <attached>
169                <Model position="0,35,0" scale=2 mesh="ast1.mesh" />
170                <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
171                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
172                  <attached>
173                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
174                  </attached>
175                </Model>
176                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
177                  <attached>
178                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
179                  </attached>
180                </Model>
181              </attached>
182            </MovableEntity>
183          </attached>
184        </StaticEntity>
185        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
186          <attached>
187            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
188            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
189            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
190            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
191          </attached>
192        </MovableEntity>
193      </attached>
194    </MovableEntity-->
195
196
197    <!--ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
198    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
199    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
200    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
201    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /-->
202
203
204    <ParticleSpawner position="0,20,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
205      <events>
206        <spawn>
207          <EventTrigger delay=1>
208            <events>
209              <trigger>
210                <SpawnPoint position="0,20,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
211              </trigger>
212            </events>
213          </EventTrigger>
214        </spawn>
215      </events>
216    </ParticleSpawner>
217
218
219    <!--ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
220      <events>
221        <activity>
222          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
223        </activity>
224      </events>
225    </ParticleEmitter>
226    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
227      <events>
228        <activity>
229          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
230        </activity>
231      </events>
232    </ParticleEmitter>
233    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
234      <events>
235        <activity>
236          <EventListener event=firetrigger1 />
237          <EventListener event=firetrigger2 />
238        </activity>
239      </events>
240    </ParticleEmitter-->
241
242
243    <!--EventDispatcher>
244      <targets>
245        <EventTarget target=fireright />
246        <EventTarget target=firecenter />
247        <EventTarget target=fireleft />
248      </targets>
249      <events>
250        <activity>
251          <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
252        </activity>
253      </events>
254    </EventDispatcher-->
255
256
257    <!--Model position="0,50,0" scale=3 mesh="assff.mesh">
258      <events>
259        <visibility>
260          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
261        </visibility>
262      </events>
263    </Model-->
264
265
266    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
267    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
268    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
269    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
270    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
271    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
272
273    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
274
275    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
276    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
277    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
278
279  </Scene>
280</Level>
Note: See TracBrowser for help on using the repository browser.