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

    r9939 r11128  
    6666
    6767    <!-- Planet close to spawn point -->
    68     <Planet
     68    <MovableEntity
    6969      position="15000,0,0"
    7070      scale="5000"
     
    7474      mass="10000000"
    7575      pitch="0"
    76       mesh="planets/muunilinst.mesh"
    77       atmosphere="atmosphere1"
    7876      rotationaxis="1,0,0"
    7977      rotationrate="1.0"
    80       atmospheresize="80.0f"
    81       imagesize="1024.0f"
    8278      collisiondamage = 2
    8379      enablecollisiondamage = true
    8480    >
    8581      <attached>
    86         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     82        <Planet
     83          mesh="planets/muunilinst.mesh"
     84          atmosphere="atmosphere1"
     85          atmospheresize="80.0f"
     86          imagesize="1024.0f"
     87        >
     88          <attached>
     89            <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     90          </attached>
     91        </Planet>
    8792      </attached>
    8893      <collisionShapes>
    8994        <SphereCollisionShape radius="5000" position="0,0,0" />
    9095      </collisionShapes>
    91     </Planet>
     96    </MovableEntity>
    9297
    9398
Note: See TracChangeset for help on using the changeset viewer.