[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" |
---|
[6872] | 15 | gravity = "0,-50,0" |
---|
[5289] | 16 | negativeWorldRange = "(-100000, -100000, -100000)" |
---|
| 17 | positiveWorldRange = "( 100000, 100000, 100000)" |
---|
| 18 | hasPhysics = true |
---|
[5262] | 19 | > |
---|
[5302] | 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 /--> |
---|
[5528] | 23 | |
---|
[6417] | 24 | <!-- axes in ogre's origin of coordinate system for phsics engine testing purposes--> |
---|
| 25 | <StaticEntity |
---|
[5335] | 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> |
---|
[6417] | 38 | </StaticEntity> |
---|
[5528] | 39 | |
---|
[6417] | 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--> |
---|
[5302] | 46 | |
---|
[6417] | 47 | <!-- yellow cube for phsics engine testing purposes--> |
---|
| 48 | <!--StaticEntity position="80,0,0"> |
---|
[5335] | 49 | <attached> |
---|
| 50 | <Model position="0,0,0" scale=1 mesh="cube.mesh" /> |
---|
| 51 | </attached> |
---|
[6417] | 52 | </StaticEntity--> |
---|
[5528] | 53 | |
---|
[5350] | 54 | <MovableEntity |
---|
[5290] | 55 | name = "blubb" |
---|
[5335] | 56 | position = "-150, 20, -500" |
---|
[5290] | 57 | collisionType = "kinematic" |
---|
[5335] | 58 | mass = 10000 |
---|
| 59 | velocity = "30, 0, 0" |
---|
[5289] | 60 | > |
---|
| 61 | <attached> |
---|
[5335] | 62 | <Model name = "moedeli" position="0,0,0" scale=20 mesh="sphere.mesh" /> |
---|
[5290] | 63 | <StaticEntity name="hahaha" position="0,0,0" collisionType="static"> |
---|
| 64 | <collisionShapes> |
---|
| 65 | <SphereCollisionShape name="firstSphere" radius=20/> |
---|
| 66 | </collisionShapes> |
---|
| 67 | </StaticEntity> |
---|
[5289] | 68 | </attached> |
---|
[5528] | 69 | |
---|
[5335] | 70 | <!--attached> |
---|
[5290] | 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> |
---|
[5335] | 75 | </attached--> |
---|
[5350] | 76 | </MovableEntity> |
---|
[5528] | 77 | |
---|
[5350] | 78 | <MovableEntity |
---|
[5290] | 79 | name = "blubb2" |
---|
[5335] | 80 | position = "150, 30, -500" |
---|
[5290] | 81 | collisionType = "dynamic" |
---|
[5289] | 82 | mass = 10 |
---|
[5335] | 83 | velocity = "-30, 0, 0" |
---|
[5289] | 84 | > |
---|
| 85 | <attached> |
---|
[5335] | 86 | <Model position="0,0,0" scale=20 mesh="sphere.mesh" /> |
---|
[5289] | 87 | </attached> |
---|
[5290] | 88 | <collisionShapes> |
---|
[5295] | 89 | <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/> |
---|
[5290] | 90 | </collisionShapes> |
---|
[5350] | 91 | </MovableEntity> |
---|
[5528] | 92 | |
---|
[5295] | 93 | <StaticEntity |
---|
| 94 | name = "blubbStatic" |
---|
[5335] | 95 | position = "0, 15, -500" |
---|
| 96 | collisionType = "Static" |
---|
[5295] | 97 | mass = 10 |
---|
| 98 | > |
---|
| 99 | <attached> |
---|
[5335] | 100 | <Model position="0,0,0" scale=20 mesh="sphere.mesh" /> |
---|
[5295] | 101 | </attached> |
---|
| 102 | <collisionShapes> |
---|
| 103 | <SphereCollisionShape name = "secondSphere" radius=20 position="0,0,0"/> |
---|
| 104 | </collisionShapes> |
---|
| 105 | </StaticEntity> |
---|
[5528] | 106 | |
---|
[5262] | 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 /--> |
---|
[5528] | 110 | |
---|
[5355] | 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> |
---|
[5528] | 125 | |
---|
[5355] | 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> |
---|
[5528] | 141 | |
---|
[5355] | 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> |
---|
[5262] | 156 | |
---|
[5350] | 157 | <!--MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90> |
---|
[5262] | 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" /> |
---|
[5350] | 165 | <StaticEntity position="0,0,100"> |
---|
[5262] | 166 | <attached> |
---|
| 167 | <Model position="0,0,0" scale=6 mesh="ast1.mesh" /> |
---|
[5350] | 168 | <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500> |
---|
[5262] | 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> |
---|
[5350] | 183 | </MovableEntity> |
---|
[5262] | 184 | </attached> |
---|
[5350] | 185 | </StaticEntity> |
---|
| 186 | <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200> |
---|
[5262] | 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> |
---|
[5350] | 193 | </MovableEntity> |
---|
[5262] | 194 | </attached> |
---|
[5350] | 195 | </MovableEntity--> |
---|
[5262] | 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 | |
---|
[5355] | 205 | <ParticleSpawner position="0,20,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> |
---|
[5262] | 206 | <events> |
---|
| 207 | <spawn> |
---|
| 208 | <EventTrigger delay=1> |
---|
| 209 | <events> |
---|
| 210 | <trigger> |
---|
[5355] | 211 | <SpawnPoint position="0,20,100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
[5262] | 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> |
---|
[5929] | 246 | <EventTarget target=fireright /> |
---|
| 247 | <EventTarget target=firecenter /> |
---|
| 248 | <EventTarget target=fireleft /> |
---|
[5262] | 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> |
---|