Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Added physics test stuff. Might not work with spaceshiptemplates.oxw.

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