Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11808 for code


Ignore:
Timestamp:
Feb 24, 2018, 4:00:22 PM (7 years ago)
Author:
landauf
Message:

attach Planets to MovableEntities to make them move (Planets are static now)

Location:
code/branches/cegui0.8_ogre1.9/data/levels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8_ogre1.9/data/levels/AsteroidFarming.oxw

    r11783 r11808  
    111111
    112112    <SpicedAsteroidBelt position="-15000,0,0" mDensity=0.3 segments=50 minSize=1 maxSize=50 radius0=7190 radius1 = 7800 count=250 tiltBy=0.5 tiltAt=0/>
    113     <Planet
     113    <MovableEntity
    114114      position="-15000,0,0"
    115115      scale="5000"
     
    119119      mass="10000000"
    120120      pitch="0"
    121       mesh="planets/muunilinst.mesh"
    122       atmosphere="atmosphere1"
    123121      rotationaxis="1,0,0"
    124122      rotationrate="1.0"
    125       atmospheresize="80.0f"
    126       imagesize="1024.0f"
    127123      collisiondamage = 2
    128124      enablecollisiondamage = true
    129     >     
    130       <attached>
    131         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
    132       </attached>
    133       <collisionShapes>
    134         <SphereCollisionShape radius="5000" position="0,0,0" />
    135       </collisionShapes>
    136     </Planet>
     125    >
     126        <attached>
     127            <Planet
     128              mesh="planets/muunilinst.mesh"
     129              atmosphere="atmosphere1"
     130              atmospheresize="80.0f"
     131              imagesize="1024.0f"
     132            >     
     133              <attached>
     134                <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     135              </attached>
     136              <collisionShapes>
     137                <SphereCollisionShape radius="5000" position="0,0,0" />
     138              </collisionShapes>
     139            </Planet>
     140        </attached>
     141    </MovableEntity>
    137142
    138143
  • code/branches/cegui0.8_ogre1.9/data/levels/newnewnewspacerace.oxw

    r11783 r11808  
    109109
    110110    <!-- ------------------Planet----------------- -->
    111     <Planet position="25000,5000,5000" scale=3000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
     111    <MovableEntity position="25000,5000,5000" scale=3000 pitch=-90 rotationaxis="8,1,0" rotationrate="1">
     112        <attached>
     113            <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f />
     114        </attached>
     115    </MovableEntity>
    112116    <StaticEntity position="0,0,0" collisionType=static>
    113117        <collisionShapes>
  • code/branches/cegui0.8_ogre1.9/data/levels/pirateAttack.oxw

    r9939 r11808  
    532532        </StaticEntity>
    533533    <!--Planet with asteroid belt-->
    534     <Planet mesh="iceplanet.mesh" position="2600,4300,-20000" scale=1000 atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f/>
     534    <MovableEntity position="2600,4300,-20000" scale=1000>
     535        <attached>
     536            <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f/>
     537        </attached>
     538    </MovableEntity>
    535539    <StaticEntity position="2600,4300,-20000" collisionType=static>
    536540          <collisionShapes>
Note: See TracChangeset for help on using the changeset viewer.