Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/old/physicstest2.oxw @ 6417

Last change on this file since 6417 was 6417, checked in by rgrieder, 14 years ago

Merged presentation2 branch back to trunk.
Major new features:

  • Actual GUI with settings, etc.
  • Improved space ship steering (human interaction)
  • Rocket fire and more particle effects
  • Advanced sound framework
  • Property svn:eol-style set to native
File size: 9.9 KB
RevLine 
[5262]1<?lua
[5654]2  include("spaceshiptemplates_physics.oxw")
[5262]3?>
[5295]4<?lua
[5654]5  include("hudtemplates3.oxo")
[5295]6?>
[5262]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"
[5289]15   negativeWorldRange = "(-100000, -100000, -100000)"
16   positiveWorldRange = "( 100000,  100000,  100000)"
17   hasPhysics   = true
[5262]18  >
[5302]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 /-->
[5528]22
[6417]23    <!-- axes in ogre's origin of coordinate system for phsics engine testing purposes-->
24    <StaticEntity
[5335]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>
[6417]37    </StaticEntity>
[5528]38
[6417]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-->
[5302]45
[6417]46    <!-- yellow cube for phsics engine testing purposes-->
47    <!--StaticEntity position="80,0,0">
[5335]48      <attached>
49        <Model position="0,0,0" scale=1 mesh="cube.mesh" />
50      </attached>
[6417]51    </StaticEntity-->
[5528]52
[5350]53    <MovableEntity
[5290]54     name            = "blubb"
[5335]55     position        = "-150, 20, -500"
[5290]56     collisionType   = "kinematic"
[5335]57     mass            = 10000
58     velocity        = "30, 0, 0"
[5289]59    >
60      <attached>
[5335]61        <Model name = "moedeli" position="0,0,0" scale=20 mesh="sphere.mesh" />
[5290]62        <StaticEntity name="hahaha" position="0,0,0" collisionType="static">
63          <collisionShapes>
64            <SphereCollisionShape name="firstSphere" radius=20/>
65          </collisionShapes>
66        </StaticEntity>
[5289]67      </attached>
[5528]68
[5335]69      <!--attached>
[5290]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>
[5335]74      </attached-->
[5350]75    </MovableEntity>
[5528]76
[5350]77    <MovableEntity
[5290]78     name            = "blubb2"
[5335]79     position        = "150, 30, -500"
[5290]80     collisionType   = "dynamic"
[5289]81     mass            = 10
[5335]82     velocity        = "-30, 0, 0"
[5289]83    >
84      <attached>
[5335]85        <Model position="0,0,0" scale=20 mesh="sphere.mesh" />
[5289]86      </attached>
[5290]87      <collisionShapes>
[5295]88        <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/>
[5290]89      </collisionShapes>
[5350]90    </MovableEntity>
[5528]91
[5295]92    <StaticEntity
93     name            = "blubbStatic"
[5335]94     position        = "0, 15, -500"
95     collisionType   = "Static"
[5295]96     mass            = 10
97    >
98      <attached>
[5335]99        <Model position="0,0,0" scale=20 mesh="sphere.mesh" />
[5295]100      </attached>
101      <collisionShapes>
102        <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/>
103      </collisionShapes>
104    </StaticEntity>
[5528]105
[5262]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 /-->
[5528]109
[5355]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>
[5528]124
[5355]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>
[5528]140
[5355]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>
[5262]155
[5350]156    <!--MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
[5262]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" />
[5350]164        <StaticEntity position="0,0,100">
[5262]165          <attached>
166            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
[5350]167            <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
[5262]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>
[5350]182            </MovableEntity>
[5262]183          </attached>
[5350]184        </StaticEntity>
185        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
[5262]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>
[5350]192        </MovableEntity>
[5262]193      </attached>
[5350]194    </MovableEntity-->
[5262]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
[5355]204    <ParticleSpawner position="0,20,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
[5262]205      <events>
206        <spawn>
207          <EventTrigger delay=1>
208            <events>
209              <trigger>
[5355]210                <SpawnPoint position="0,20,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
[5262]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>
[5929]245        <EventTarget target=fireright />
246        <EventTarget target=firecenter />
247        <EventTarget target=fireleft />
[5262]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.