Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 9, 2014, 9:01:44 PM (11 years ago)
Author:
noep
Message:

Modified collision-detecting-process, such that collisions can be traced back to single child-CollisionShapes of Compound-CollisionShapes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/modularships/data/levels/emptyLevel.oxw

    r9415 r9995  
    3232    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
    3333   
     34    <MovableEntity position="0,0,0" collisionType=dynamic scale=1 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
     35    <attached>
     36        <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
     37        <StaticEntity position="0,90,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
     38            <attached>
     39                <Model position="0,0,0" mesh="cube.mesh" scale3D="30,30,30" />
     40            </attached>
     41            <collisionShapes>
     42                <BoxCollisionShape position="0,0,0" halfExtents="30,30,30" />
     43            </collisionShapes>
     44        </StaticEntity>
     45    </attached>
     46    <collisionShapes>
     47        <BoxCollisionShape position="0,0,0" halfExtents="40,40,40" />
     48    </collisionShapes>
     49    </MovableEntity>
     50   
     51    <Pawn health=30 position="0,-50,0" direction="0,-1,0" collisionType=dynamic mass=1000 name=box radarname = "Box 4" >
     52        <attached>
     53            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
     54        </attached>
     55        <collisionShapes>
     56            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
     57        </collisionShapes>
     58    </Pawn>
     59   
    3460  </Scene>
    3561</Level>
Note: See TracChangeset for help on using the changeset viewer.