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

    r10624 r11128  
    360360
    361361    <!-- ------------------Planet----------------- -->
    362     <Planet position="0,0,0" scale=300 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
     362    <MovableEntity position="0,0,0" scale=300 pitch=-90 rotationaxis="8,1,0" rotationrate="1">
     363      <attached>
     364        <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f />
     365      </attached>
     366    </MovableEntity>
    363367    <StaticEntity position="0,0,0" collisionType=static>
    364368        <collisionShapes>
Note: See TracChangeset for help on using the changeset viewer.