Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 6, 2016, 1:56:26 PM (9 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/shadertest.oxw

    r11080 r11128  
    7878    <!-- Planet close to spawn point -->
    7979
    80     <Planet
     80    <MovableEntity
    8181      position="15000,0,-1000"
    8282      scale="5000"
     
    8686      mass="10000000"
    8787      pitch="0"
    88       mesh="planets/muunilinst.mesh"
    89       atmosphere="atmosphere1"
    9088      rotationaxis="1,0,0"
    9189      rotationrate="1.0"
    92       atmospheresize="80.0f"
    93       imagesize="1024.0f"
    9490      collisiondamage = 2
    9591      enablecollisiondamage = true
    9692    >
    9793      <attached>
    98         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     94        <Planet
     95          mesh="planets/muunilinst.mesh"
     96          atmosphere="atmosphere1"
     97          atmospheresize="80.0f"
     98          imagesize="1024.0f"
     99        >
     100          <attached>
     101            <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     102          </attached>
     103        </Planet>
    99104      </attached>
    100105      <collisionShapes>
    101106        <SphereCollisionShape radius="5000" position="0,0,0" />
    102107      </collisionShapes>
    103     </Planet>
     108    </MovableEntity>
    104109
    105110
Note: See TracChangeset for help on using the changeset viewer.