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/levelTry.oxw

    r11104 r11128  
    149149    ?>
    150150
    151     <Planet
     151    <MovableEntity
    152152      position="15000,0,-1000"
    153153      scale="5000"
     
    157157      mass="10000000"
    158158      pitch="0"
    159       mesh="planets/ganymede.mesh"
    160       atmosphere="atmosphere1"
    161159      rotationaxis="1,0,0"
    162160      rotationrate="1.0"
    163       atmospheresize="80.0f"
    164       imagesize="1024.0f"
    165161      collisiondamage = 2
    166162      enablecollisiondamage = true
    167163    >
    168164      <attached>
    169         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     165        <Planet
     166          mesh="planets/ganymede.mesh"
     167          atmosphere="atmosphere1"
     168          atmospheresize="80.0f"
     169          imagesize="1024.0f"
     170        >
     171          <attached>
     172            <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     173          </attached>
     174        </Planet>
    170175      </attached>
    171176      <collisionShapes>
    172177        <SphereCollisionShape radius="5000" position="0,0,0" />
    173178      </collisionShapes>
    174     </Planet>
     179    </MovableEntity>
    175180
    176181  </Scene>
Note: See TracChangeset for help on using the changeset viewer.