| [5376] | 1 | <?lua | 
|---|
| [7679] | 2 |   include("HUDTemplates3.oxo") | 
|---|
| [5654] | 3 |   include("stats.oxo") | 
|---|
| [7679] | 4 |   include("templates/spaceshipAssff.oxt") | 
|---|
| [5376] | 5 |   math.randomseed(344) | 
|---|
 | 6 | ?> | 
|---|
 | 7 |  | 
|---|
 | 8 | <Level | 
|---|
 | 9 |  name         = "Physics" | 
|---|
 | 10 |  description  = "Just a few tests" | 
|---|
 | 11 | > | 
|---|
 | 12 |   <Scene | 
|---|
 | 13 |    ambientlight = "0.8, 0.8, 0.8" | 
|---|
| [5381] | 14 |    skybox       = "Orxonox/skypanoramagen1" | 
|---|
| [5376] | 15 |    gravity      = "0, -10, 0" | 
|---|
 | 16 |   > | 
|---|
| [5381] | 17 |     <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> | 
|---|
| [5376] | 18 |  | 
|---|
 | 19 |     <StaticEntity | 
|---|
 | 20 |      position        = "0,0,0" | 
|---|
 | 21 |      name            = "floor" | 
|---|
 | 22 |      collisionType   = "static" | 
|---|
 | 23 |      friction        = 1 | 
|---|
 | 24 |     > | 
|---|
 | 25 |       <attached> | 
|---|
 | 26 |         <Model position="0,0,0" scale=100 mesh="plane.mesh" /> | 
|---|
 | 27 |         <Model position="0,-0.0001,0" roll=180 scale=100 mesh="plane.mesh" /> | 
|---|
 | 28 |       </attached> | 
|---|
 | 29 |       <collisionShapes> | 
|---|
 | 30 |         <PlaneCollisionShape planeNormal="0,1,0" planeOffset=0 /> | 
|---|
 | 31 |       </collisionShapes> | 
|---|
| [6417] | 32 |     </StaticEntity> | 
|---|
| [5528] | 33 |  | 
|---|
| [6417] | 34 |     <MovableEntity | 
|---|
| [5376] | 35 |      position        = "0,250,500" | 
|---|
 | 36 |      rotationaxis    = "1, 1, 1" | 
|---|
 | 37 |      rotationrate    = 360 | 
|---|
 | 38 |      velocity        = "0, 0, -80" | 
|---|
 | 39 |      name            = "ship" | 
|---|
 | 40 |      collisionType   = "dynamic" | 
|---|
 | 41 |      friction        = 0.5 | 
|---|
 | 42 |      mass            = 500 | 
|---|
 | 43 |      restitution     = 0 | 
|---|
 | 44 |     > | 
|---|
 | 45 |       <attached> | 
|---|
 | 46 |         <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" /> | 
|---|
 | 47 |         <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 /> | 
|---|
 | 48 |         <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 /> | 
|---|
| [5528] | 49 |  | 
|---|
| [5376] | 50 |         <!--Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" /> | 
|---|
 | 51 |         <Model position="0,0,0" scale3D="10, 3, 5" mesh="cube.mesh" /> | 
|---|
 | 52 |         <Model position="13,-1.3,0" scale3D="3, 1, 2" mesh="cube.mesh" /> | 
|---|
 | 53 |         <Model position="-13,-1.3,0" scale3D="3, 1, 2" mesh="cube.mesh" /> | 
|---|
 | 54 |         <Model position="0,0,7" scale3D="3, 2, 2" mesh="cube.mesh" /> | 
|---|
 | 55 |         <Model position="0,0.1,-11" scale3D="2.2, 1.8, 6" mesh="cube.mesh" /> | 
|---|
 | 56 |         <Model position="0,0.1,-19" scale3D="1.4, 1, 2" mesh="cube.mesh" /--> | 
|---|
 | 57 |       </attached> | 
|---|
 | 58 |       <collisionShapes> | 
|---|
 | 59 |         <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" /> | 
|---|
 | 60 |         <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" /> | 
|---|
 | 61 |         <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> | 
|---|
 | 62 |         <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" /> | 
|---|
 | 63 |         <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" /> | 
|---|
 | 64 |         <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" /> | 
|---|
 | 65 |       </collisionShapes> | 
|---|
| [6417] | 66 |     </MovableEntity> | 
|---|
| [5528] | 67 |  | 
|---|
| [5376] | 68 |     <?lua | 
|---|
 | 69 |     for i = -20, 20, 8 | 
|---|
 | 70 |     do | 
|---|
 | 71 |       for i2 = -20, 20, 8 | 
|---|
 | 72 |       do | 
|---|
 | 73 |         for i3 = -20, 20, 8 | 
|---|
 | 74 |         do ?> | 
|---|
 | 75 |         <MovableEntity | 
|---|
 | 76 |          position="<?lua print(i)?>, <?lua print(i3 + 250)?>, <?lua print(i2) ?>" | 
|---|
 | 77 |          collisionType = "dynamic" | 
|---|
 | 78 |          mass = 1 | 
|---|
 | 79 |          restitution = 0 | 
|---|
 | 80 |          friction = 0.5 | 
|---|
 | 81 |         > | 
|---|
 | 82 |           <attached> | 
|---|
 | 83 |             <Model position="0,0,0" scale=2 mesh="cube.mesh" /> | 
|---|
 | 84 |           </attached> | 
|---|
 | 85 |           <collisionShapes> | 
|---|
 | 86 |             <BoxCollisionShape halfExtents="2, 2, 2" /> | 
|---|
 | 87 |           </collisionShapes> | 
|---|
 | 88 |         </MovableEntity> | 
|---|
 | 89 |     <?lua | 
|---|
 | 90 |         end | 
|---|
 | 91 |       end | 
|---|
 | 92 |     end | 
|---|
 | 93 |     ?> | 
|---|
 | 94 |  | 
|---|
 | 95 |     <ParticleSpawner position="-100,170,30" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> | 
|---|
 | 96 |       <events> | 
|---|
 | 97 |         <spawn> | 
|---|
 | 98 |           <EventTrigger delay=1> | 
|---|
 | 99 |             <events> | 
|---|
 | 100 |               <trigger> | 
|---|
 | 101 |                 <SpawnPoint position="-100,170,30" spawnclass=SpaceShip pawndesign=spaceshipassff /> | 
|---|
 | 102 |               </trigger> | 
|---|
 | 103 |             </events> | 
|---|
 | 104 |           </EventTrigger> | 
|---|
 | 105 |         </spawn> | 
|---|
 | 106 |       </events> | 
|---|
 | 107 |     </ParticleSpawner> | 
|---|
 | 108 |   </Scene> | 
|---|
 | 109 | </Level> | 
|---|