Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11975


Ignore:
Timestamp:
May 17, 2018, 4:10:30 PM (6 years ago)
Author:
sehirsch
Message:

Added more traffic objects

Location:
code/branches/OrxyRoad_FS18
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxyRoad_FS18/data/levels/OrxyRoad.oxw

    r11970 r11975  
    4949
    5050    <OrxyRoadCenterPoint name=invadercenter />
    51  
    52   <!--
    53 
    54   <StaticEntity position="0,-50,0" direction="0,0,0"   scale="1" collisionType=static mass=1 friction=0.01 >
    55       <attached>
    56         <Model position="0,0,0" mesh="plane.mesh" scale3D="100000,0,100000" />
    57       </attached>
    58 
    59       <collisionShapes>
    60         <BoxCollisionShape position="0,0,0" halfExtents="1,1,1" />
    61       </collisionShapes>
    62 
    63   </StaticEntity>
    64    
    65   -->
    66    
    67    
    68    
    6951   
    7052  </Scene>
  • code/branches/OrxyRoad_FS18/data/levels/templates/OrxyRoadPattern.oxt

    r11970 r11975  
    9393
    9494
    95 <Template name=spacecruiser>
     95<Template name=spaceshuttle>
    9696
    97         <OrxyRoadCube position="0,0,0" direction="0,0,0"   scale="1" roll=90 pitch=-90  collisionType=dynamic mass=1 friction=0.01 >
     97        <OrxyRoadCube position="0,0,0" direction="0,0,0"   scale="1" roll=0 pitch=0   collisionType=dynamic mass=1 friction=0.01 >
    9898      <attached>
    99         <Model position="0,0,0"                 mesh="spacecruiser.mesh"                scale="10"      />
     99        <Model position="0,0,0"                 mesh="Transporterspaceship.mesh"                scale="10"      />
    100100               
    101101      </attached>
    102102      <collisionShapes>
    103       <BoxCollisionShape position="0,-5,2"     halfExtents="38,6,62" />
    104       <BoxCollisionShape position="0,5,2"      halfExtents="20,6,40" />
    105       <BoxCollisionShape position="-16,-10,-2" halfExtents="15,5,57" roll=-14 pitch=3.5 />
    106       <BoxCollisionShape position="16,-10,-2"  halfExtents="15,5,57" roll=14  pitch=3.5 />
    107       <BoxCollisionShape position="19,3.5,2"   halfExtents="18,5,52" roll=-21 />
    108       <BoxCollisionShape position="-19,4.5,2"  halfExtents="18,5,52" roll=21  />
    109       <BoxCollisionShape position="0,4,-59"    halfExtents="18,1,16" pitch=-30 />
    110 
    111       scale="10"
    112 
    113     </collisionShapes>
     103        <BoxCollisionShape position=" 0, 0, 20"      halfExtents=" 37, 25, 80" />
     104        <BoxCollisionShape position=" 0, 21, 20"      halfExtents=" 37, 21, 80" />
     105        <BoxCollisionShape position=" 0, 40, 110"      halfExtents=" 20, 10, 40" />
     106            <BoxCollisionShape position=" 0, 45, 170"      halfExtents=" 33, 25, 20" />
     107            <BoxCollisionShape position=" -60, 33, 0"      halfExtents=" 24, 16, 120" />
     108            <BoxCollisionShape position=" 60, 33, 0"      halfExtents=" 24, 16, 120" />
     109            <BoxCollisionShape position=" 0, 10, -90"      halfExtents=" 30, 25, 30" />
     110            <BoxCollisionShape position=" 0, -3, -145"      halfExtents=" 20, 20, 30" />
     111           </collisionShapes>
    114112        </OrxyRoadCube>
    115113
    116114</Template>
    117115
    118 <Template name=asteroid>
     116
     117
     118<Template name=asteroid1>
    119119       
    120120        <OrxyRoadCube position="0,0,0" direction="0,0,0"   scale="1" collisionType=dynamic mass=1 friction=0.01 >
     
    131131
    132132
     133<Template name=asteroid2>
     134       
     135        <OrxyRoadCube position="0,0,0" direction="0,0,0"   scale="1" collisionType=dynamic mass=1 friction=0.01 >
     136        <attached>
     137      <Model position="0,0,0"           mesh="ast2.mesh"                scale="50"      />
     138    </attached>
     139    <collisionShapes>
     140      <SphereCollisionShape radius="30" />
     141    </collisionShapes>
     142        </OrxyRoadCube>
     143
     144</Template>
     145
     146
     147
     148<Template name=satellite>
     149
     150        <OrxyRoadCube position="0,0,0" direction="0,0,0"   scale="1" collisionType=dynamic mass=1 friction=0.01 >
     151        <attached>
     152      <Model position="0,0,0" yaw="90" pitch="-90" roll="0" scale="30" mesh="satellite.mesh" />
     153    </attached>
     154    <collisionShapes>
     155        <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
     156    </collisionShapes>
     157        </OrxyRoadCube>
     158
     159</Template>
     160
     161
     162
  • code/branches/OrxyRoad_FS18/src/modules/orxyroad/OrxyRoad.cc

    r11972 r11975  
    117117                        case 0 :
    118118                            if(templateType >=1){
    119                                 cube->addTemplate("asteroid");//default
     119                                cube->addTemplate("asteroid1");//default
    120120                            }else {
    121                                 cube->addTemplate("asteroid");//default
     121                                cube->addTemplate("satellite");//default
    122122                            }
    123123                        break;
    124124                        case 1:
    125125                         if(templateType >=1){
    126                                 cube->addTemplate("asteroid");//spaceship1
     126                                cube->addTemplate("spaceshuttle");//spaceship1
    127127                            }else {
    128                                 cube->addTemplate("spacecruiser");//spaceship2
     128                                cube->addTemplate("spaceshuttle");//spaceship2
    129129                            }                       
    130130                           
     
    133133                        case 2:
    134134                            if(templateType >=1){
    135                                 cube->addTemplate("asteroid");//satellite
     135                                cube->addTemplate("satellite");//satellite
    136136                            }else {
    137                                 cube->addTemplate("spacecruiser");//satellite
     137                                cube->addTemplate("satellite");//satellite
    138138                            }                     
    139139
     
    142142                        case 3:
    143143                            if(templateType >=1){
    144                                 cube->addTemplate("asteroid");//asteroid
     144                                cube->addTemplate("asteroid1");//asteroid
    145145                            }else {
    146                                 cube->addTemplate("spacecruiser");//asteroid
     146                                cube->addTemplate("asteroid2");//asteroid
    147147                            }                     
    148148
Note: See TracChangeset for help on using the changeset viewer.