Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 6, 2016, 1:56:26 PM (8 years ago)
Author:
landauf
Message:

let Planet inherit from Model to avoid code duplication (especially lod levels).
since model is a static entity, all planets with rotation and/or dynamic physics need to be attached to a movableentity now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ogre1.9/data/levels/planets.oxw

    r9348 r11128  
    4545    />
    4646
    47     <Planet
     47    <MovableEntity
    4848      position="0,0,0"
    4949      scale="1000"
     
    5353      mass="10000000"
    5454      pitch="0"
    55       mesh="planets/muunilinst.mesh"
    56       atmosphere="atmosphere1"
    5755      rotationaxis="1,0,0"
    5856      rotationrate="1.0"
    59       atmospheresize="80.0f"
    60       imagesize="1024.0f"
    6157      collisiondamage = 2
    6258      enablecollisiondamage = true
    6359    >
    6460      <attached>
    65         <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
     61        <Planet
     62          mesh="planets/muunilinst.mesh"
     63          atmosphere="atmosphere1"
     64          atmospheresize="80.0f"
     65          imagesize="1024.0f"
     66        >
     67          <attached>
     68            <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
     69          </attached>
     70        </Planet>
    6671      </attached>
    6772      <collisionShapes>
    6873        <SphereCollisionShape radius="1000" position="0,0,0" />
    6974      </collisionShapes>
    70     </Planet>
     75    </MovableEntity>
    7176
    72     <Planet
     77    <MovableEntity
    7378      position="10000,0,0"
    7479      scale="100"
     
    7883      mass="5000000"
    7984      pitch="0"
    80       mesh="planets/muunilinst.mesh"
    81       atmosphere="atmosphere1"
    8285      rotationaxis="1,0,0"
    8386      rotationrate="1.0"
    84       atmospheresize="80.0f"
    85       imagesize="1024.0f"
    8687      collisiondamage = 2
    8788      enablecollisiondamage = true
    8889    >
    8990      <attached>
    90         <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
     91        <Planet
     92          mesh="planets/muunilinst.mesh"
     93          atmosphere="atmosphere1"
     94          atmospheresize="80.0f"
     95          imagesize="1024.0f"
     96        >
     97          <attached>
     98            <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
     99          </attached>
     100        </Planet>
    91101      </attached>
    92102      <collisionShapes>
    93103        <SphereCollisionShape radius="100" position="0,0,0" />
    94104      </collisionShapes>
    95     </Planet>
     105    </MovableEntity>
    96106  </Scene>
    97107</Level>
Note: See TracChangeset for help on using the changeset viewer.