Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8392 for code/trunk/data


Ignore:
Timestamp:
May 2, 2011, 11:53:18 PM (14 years ago)
Author:
youngk
Message:

Planets now have collision shapes and gravitational pull. Have fun.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/planets.oxw

    r8385 r8392  
    99  include("HUDTemplates3.oxo")
    1010  include("templates/lodInformation.oxt")
    11   include("templates/spaceshipSwallow.oxt")
     11  include("templates/spaceshipHXY.oxt")
    1212?>
    1313
     
    1717>
    1818  <templates>
    19     <Template link=lodtemplate_default />
     19    <Template link="lodtemplate_default" />
    2020  </templates>
    2121
     
    2525  >
    2626
    27     <WorldAmbientSound ambientSource="AlphaCentauri.ogg" looping="true" playOnLoad="true" />
    28     <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" />
     27    <WorldAmbientSound
     28      ambientSource="AlphaCentauri.ogg"
     29      looping="true"
     30      playOnLoad="true"
     31    />
     32   
     33    <Light
     34      type="directional"
     35      position="-10000,-10000,0"
     36      direction="0.253, 0.593, -0.765"
     37      diffuse="1.0, 0.9, 0.9, 1.0"
     38      specular="1.0, 0.9, 0.9, 1.0"
     39    />
    2940
     41    <SpawnPoint
     42      position="1500,0,0"
     43      lookat="0,0,0"
     44      spawnclass="SpaceShip"
     45      pawndesign="spaceshipHXY"
     46    />
    3047
    31     <SpawnPoint position="1500,0,0" lookat="0,0,0" spawnclass="SpaceShip" pawndesign="spaceshipswallow" />
     48    <Planet
     49      position="0,0,0"
     50      scale="1000"
     51      collisionType="dynamic"
     52      linearDamping="0.8"
     53      angularDamping="0"
     54      mass="10000000"
     55      pitch="0"
     56      mesh="Muunilinst.mesh"
     57      atmosphere="atmosphere1"
     58      rotationaxis="1,0,0"
     59      rotationrate="1.0"
     60      atmospheresize="300.0f"
     61      imagesize="1024.0f"
     62    >
     63      <attached>
     64        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
     65      </attached>
     66      <collisionShapes>
     67        <SphereCollisionShape radius="1000" position="0,0,0" />
     68      </collisionShapes>
     69    </Planet>
    3270
    33     <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" />
    34     <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" />
    35 
     71    <Planet
     72      position="10000,0,0"
     73      scale="100"
     74      collisionType="dynamic"
     75      linearDamping="0.8"
     76      angularDamping="0"
     77      mass="5000000"
     78      pitch="0"
     79      mesh="ganymede.mesh"
     80      atmosphere="atmosphere1"
     81      rotationaxis="1,0,0"
     82      rotationrate="1.0"
     83      atmospheresize="224.0f"
     84      imagesize="1024.0f"
     85    >
     86      <attached>
     87        <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
     88      </attached>
     89      <collisionShapes>
     90        <SphereCollisionShape radius="100" position="0,0,0" />
     91      </collisionShapes>
     92    </Planet>
    3693  </Scene>
    3794</Level>
Note: See TracChangeset for help on using the changeset viewer.