Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5335 was 5335, checked in by rgrieder, 15 years ago

Physics test file update.

  • Property svn:eol-style set to native
File size: 8.5 KB
Line 
1<?lua
2  include("levels/spaceshiptemplates.oxw")
3?>
4<?lua
5  include("levels/hudtemplates_physics.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      <!--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       
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    <LinearEntity
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    </LinearEntity>
77 
78    <LinearEntity
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    </LinearEntity>
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    <!--LinearEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
112      <events>
113        <activity>
114          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
115        </activity>
116      </events>
117      <attached>
118        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
119        <PositionableEntity position="0,0,100">
120          <attached>
121            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
122            <LinearEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
123              <attached>
124                <Model position="0,35,0" scale=2 mesh="ast1.mesh" />
125                <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
126                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
127                  <attached>
128                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
129                  </attached>
130                </Model>
131                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
132                  <attached>
133                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
134                  </attached>
135                </Model>
136              </attached>
137            </LinearEntity>
138          </attached>
139        </PositionableEntity>
140        <LinearEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
141          <attached>
142            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
143            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
144            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
145            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
146          </attached>
147        </LinearEntity>
148      </attached>
149    </LinearEntity-->
150
151
152    <!--ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
153    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
154    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
155    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
156    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /-->
157
158
159    <ParticleSpawner position="0,5,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
160      <events>
161        <spawn>
162          <EventTrigger delay=1>
163            <events>
164              <trigger>
165                <SpawnPoint position="0,5,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
166              </trigger>
167            </events>
168          </EventTrigger>
169        </spawn>
170      </events>
171    </ParticleSpawner>
172
173
174    <!--ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
175      <events>
176        <activity>
177          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
178        </activity>
179      </events>
180    </ParticleEmitter>
181    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
182      <events>
183        <activity>
184          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
185        </activity>
186      </events>
187    </ParticleEmitter>
188    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
189      <events>
190        <activity>
191          <EventListener event=firetrigger1 />
192          <EventListener event=firetrigger2 />
193        </activity>
194      </events>
195    </ParticleEmitter-->
196
197
198    <!--EventDispatcher>
199      <targets>
200        <EventTarget name=fireright />
201        <EventTarget name=firecenter />
202        <EventTarget name=fireleft />
203      </targets>
204      <events>
205        <activity>
206          <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
207        </activity>
208      </events>
209    </EventDispatcher-->
210
211
212    <!--Model position="0,50,0" scale=3 mesh="assff.mesh">
213      <events>
214        <visibility>
215          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
216        </visibility>
217      </events>
218    </Model-->
219
220
221    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
222    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
223    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
224    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
225    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
226    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
227
228    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
229
230    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
231    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
232    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
233
234  </Scene>
235</Level>
Note: See TracBrowser for help on using the repository browser.