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

    r9939 r11128  
    3333
    3434<!-- ------------------Planet needs gravity----------------- -->
    35 <Planet position="0,0,0" scale=500 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
    36 <StaticEntity position="0,0,0" collisionType=static>
     35    <MovableEntity position="0,0,0" scale=500 pitch=-90 rotationaxis="8,1,0" rotationrate="1">
     36      <attached>
     37        <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f />
     38      </attached>
     39    </MovableEntity>
     40    <StaticEntity position="0,0,0" collisionType=static>
    3741      <collisionShapes>
    3842        <SphereCollisionShape radius="499" />
Note: See TracChangeset for help on using the changeset viewer.