Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8165 for code


Ignore:
Timestamp:
Apr 1, 2011, 12:25:28 AM (14 years ago)
Author:
jo
Message:

Collisionshapes added. Beginning to experiment with forcefields. Goal: Create several "forcefield streams" in the level wich enable the player to move a lot faster than usual. Requieres a lot of testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lastmanstanding3/data/levels/TEAMstanding.oxw

    r8155 r8165  
    110110   </StaticEntity>
    111111
    112    <!-- TEST FAILED - You can't put a dynamic collisionshape into a static collisionshape -->
    113    <!--MovableEntity position="0,0,-80" collisionType=dynamic linearDamping=0.8 angularDamping=0 >
    114        <attached>
    115            <Model position="0,0,0" scale=140 mesh="sphere.mesh" />
    116        </attached>
    117        <collisionShapes>
    118            <SphereCollisionShape position="0,0,0" radius="140" />
    119        </collisionShapes>
    120     </MovableEntity>
    121 
    122    <MovableEntity position="0,0,0" collisionType=dynamic linearDamping=0.8 angularDamping=0 >
    123        <attached>
    124            <Model position="0,-1200,0" mesh="hs-w01.mesh" scale3D="299,399,899" pitch="90" roll="0" yaw="0"/>
    125        </attached>
    126        <collisionShapes>
    127            <BoxCollisionShape position="121,0,-80" halfExtents="15,370,15" />
    128            <BoxCollisionShape position="-121,0,-80" halfExtents="15,370,15" />
    129        </collisionShapes>
    130     </MovableEntity-->
     112   <ForceField position="0,270,-80" direction="-3,-4,-3" diameter=150 velocity=2000 length=900 />
     113   <MovableEntity position="0,270,-80" direction="-3,-4,-3">
     114       <attached>
     115           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=2/>
     116           <?lua for i=0,4,1 do ?>
     117               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
     118           <?lua end ?>
     119       </attached>
     120   </MovableEntity>
     121
    131122
    132123<!-------------- Bulk Gate -------------->
     
    134125       <attached>
    135126           <Model position="0,-100,0" mesh="hs-w01.mesh" scale3D="500,400,600" pitch="270" roll="0" yaw="0"/>
    136        </attached>
    137        <!--collisionShapes>
    138            <BoxCollisionShape position="0,0,-1000" halfExtents="1000,400,10" />
    139        </collisionShapes-->
    140    </StaticEntity>
     127           <!--Model position="205,-105,20" mesh="cube.mesh" scale3D="135,280,60" />
     128           <Model position="-205,-105,20" mesh="cube.mesh" scale3D="135,280,60" />
     129           <Model position="0,235,0" mesh="cube.mesh" scale3D="180,35,35" />
     130           <Model position="0,-344,-18" mesh="cube.mesh" scale3D="210,38,36" /-->
     131       </attached>
     132       <collisionShapes>
     133           <BoxCollisionShape position="205,-105,20" halfExtents="135,280,60" />
     134           <BoxCollisionShape position="-205,-105,20" halfExtents="135,280,60" />
     135           <BoxCollisionShape position="0,235,0" halfExtents="180,35,35" />
     136           <BoxCollisionShape position="0,-344,-18" halfExtents="210,38,36" />
     137       </collisionShapes>
     138   </StaticEntity>
     139
     140   <ForceField position="300,300,500" direction="-1,0,-2" diameter=100 velocity=1500 length=900 />
     141   <MovableEntity position="300,300,500" direction="-1,0,-2">
     142       <attached>
     143           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=2/>
     144           <?lua for i=0,4,1 do ?>
     145               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
     146           <?lua end ?>
     147       </attached>
     148   </MovableEntity>
     149
    141150
    142151<!-------------- Bar -------------->
     
    152161   </StaticEntity>
    153162
     163   <ForceField position="-700,-300,-700" direction="0,1,0" diameter=100 velocity=2000 length=900 />
     164   <MovableEntity position="-700,-300,-700" direction="0,1,0">
     165       <attached>
     166           <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.7,0.4,0.1" scale=2/>
     167           <?lua for i=0,4,1 do ?>
     168               <Billboard position="0,0,<?lua print(i*(-100)) ?>" material="Examples/Flare" colour="0.7,0.4,0.1" scale=1/>
     169           <?lua end ?>
     170       </attached>
     171   </MovableEntity>
    154172
    155173<!-------------- 2 Side-Bars -------------->
     
    183201           <Model position="0,0,0" mesh="SolarPanel.mesh" scale3D="60,80,30" pitch="0" roll="0" yaw="120"/>
    184202       </attached>
     203       <collisionShapes>
     204           <BoxCollisionShape position="0,300,0" halfExtents="155,460,3" pitch="0" roll="0" yaw="120"/>
     205       </collisionShapes>
     206   </StaticEntity>
     207<?lua end ?>
     208
     209<!-------------- ???? --------------->
     210   <StaticEntity position="500,0,-500" direction="0,0,0" collisionType=static mass=100000 >
     211       <attached>
     212           <Model position="0,0,0" mesh="plane.mesh" scale=20  pitch="7" roll="0" yaw="0"/>
     213       </attached>
    185214       <!--collisionShapes>
    186215           <BoxCollisionShape position="0,0,0" halfExtents="20,400,20" pitch="0" roll="0" yaw="0"/>
    187216       </collisionShapes-->
    188    </StaticEntity>
    189 <?lua end ?>
    190 
    191 <!-------------- ???? --------------->
    192    <StaticEntity position="500,0,-500" direction="0,0,0" collisionType=static mass=100000 >
    193        <attached>
    194            <Model position="0,0,0" mesh="plane.mesh" scale=20  pitch="7" roll="0" yaw="0"/>
    195        </attached>
    196        <collisionShapes>
    197            <BoxCollisionShape position="0,0,0" halfExtents="20,400,20" pitch="0" roll="0" yaw="0"/>
    198        </collisionShapes>
    199217   </StaticEntity>
    200218
Note: See TracChangeset for help on using the changeset viewer.