Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/fps/data/levels/old/physicstest2.oxw @ 7055

Last change on this file since 7055 was 6872, checked in by edwind, 15 years ago

commit by ed

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