[Orxonox-commit 3712] r8392 - code/trunk/data/levels

youngk at orxonox.net youngk at orxonox.net
Mon May 2 23:53:18 CEST 2011


Author: youngk
Date: 2011-05-02 23:53:18 +0200 (Mon, 02 May 2011)
New Revision: 8392

Modified:
   code/trunk/data/levels/planets.oxw
Log:
Planets now have collision shapes and gravitational pull. Have fun.

Modified: code/trunk/data/levels/planets.oxw
===================================================================
--- code/trunk/data/levels/planets.oxw	2011-05-02 21:50:21 UTC (rev 8391)
+++ code/trunk/data/levels/planets.oxw	2011-05-02 21:53:18 UTC (rev 8392)
@@ -8,7 +8,7 @@
   include("stats.oxo")
   include("HUDTemplates3.oxo")
   include("templates/lodInformation.oxt")
-  include("templates/spaceshipSwallow.oxt")
+  include("templates/spaceshipHXY.oxt")
 ?>
 
 <Level
@@ -16,7 +16,7 @@
  description  = "Demonstration of Planets"
 >
   <templates>
-    <Template link=lodtemplate_default />
+    <Template link="lodtemplate_default" />
   </templates>
 
   <Scene
@@ -24,14 +24,71 @@
     skybox       = "Orxonox/skypanoramagen1"
   >
 
-    <WorldAmbientSound ambientSource="AlphaCentauri.ogg" looping="true" playOnLoad="true" />
-    <Light type=directional position="-10000,-10000,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" />
+    <WorldAmbientSound
+      ambientSource="AlphaCentauri.ogg"
+      looping="true"
+      playOnLoad="true"
+    />
+    
+    <Light
+      type="directional"
+      position="-10000,-10000,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"
+    />
 
+    <SpawnPoint
+      position="1500,0,0"
+      lookat="0,0,0"
+      spawnclass="SpaceShip"
+      pawndesign="spaceshipHXY"
+    />
 
-    <SpawnPoint position="1500,0,0" lookat="0,0,0" spawnclass="SpaceShip" pawndesign="spaceshipswallow" />
+    <Planet
+      position="0,0,0"
+      scale="1000"
+      collisionType="dynamic"
+      linearDamping="0.8"
+      angularDamping="0"
+      mass="10000000"
+      pitch="0"
+      mesh="Muunilinst.mesh"
+      atmosphere="atmosphere1"
+      rotationaxis="1,0,0"
+      rotationrate="1.0"
+      atmospheresize="300.0f"
+      imagesize="1024.0f"
+    >
+      <attached>
+        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
+      </attached>
+      <collisionShapes>
+        <SphereCollisionShape radius="1000" position="0,0,0" />
+      </collisionShapes>
+    </Planet>
 
-    <Planet position="0,0,0" scale="1000" pitch="0" mesh="jupiter.mesh" atmosphere="atmosphere1" rotationaxis="1,0,0" rotationrate="1.0" atmospheresize="300.0f" imagesize="1024.0f" />
-    <Planet position="10000,0,0" scale="100" pitch="0" mesh="ganymede.mesh" atmosphere="atmosphere1" rotationaxis="1,0,0" rotationrate="1.0" atmospheresize="224.0f" imagesize="1024.0f" />
-
+    <Planet
+      position="10000,0,0"
+      scale="100"
+      collisionType="dynamic"
+      linearDamping="0.8"
+      angularDamping="0"
+      mass="5000000"
+      pitch="0"
+      mesh="ganymede.mesh"
+      atmosphere="atmosphere1"
+      rotationaxis="1,0,0"
+      rotationrate="1.0"
+      atmospheresize="224.0f"
+      imagesize="1024.0f"
+    >
+      <attached>
+        <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
+      </attached>
+      <collisionShapes>
+        <SphereCollisionShape radius="100" position="0,0,0" />
+      </collisionShapes>
+    </Planet>
   </Scene>
 </Level>




More information about the Orxonox-commit mailing list