Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2014, 6:39:46 PM (11 years ago)
Author:
noep
Message:

Added functions to print the collisionshape-structure of a Pawn which gets hit. Doesn't quite work yet.

File:
1 edited

Legend:

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

    r9996 r9997  
    4949    </MovableEntity>
    5050   
    51     <Pawn health=30 position="0,-100,0" direction="0,0,0" collisionType=dynamic mass=1000 name=box radarname = "Box 4" >
     51    <Pawn health=1000 initialhealth=1000 maxhealth=1000 position="0,-100,0" direction="0,0,0" collisionType=dynamic mass=1000 name=box radarname = "Box 4" >
    5252        <attached>
    5353            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
     54            <Model position="0,-30,0" mesh="cube.mesh" scale3D="15,15,15" />
     55            <StaticEntity position="0,-60,0" direction="0,0,0" collisionType=static mass=100 friction=0.01 >
     56                <attached>
     57                    <Model position="0,0,0" mesh="cube.mesh" scale3D="15,15,15" />
     58                    <Model position="0,0,30" mesh="cube.mesh" scale3D="15,15,15" />
     59                </attached>
     60                <collisionShapes>
     61                    <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
     62                    <BoxCollisionShape position="0,0,30" halfExtents="15,15,15" />
     63                </collisionShapes>
     64            </StaticEntity>
    5465        </attached>
    5566        <collisionShapes>
    5667            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
    57             <BoxCollisionShape position="0,-15,0" halfExtents="15,15,15" />
     68            <BoxCollisionShape position="0,-30,0" halfExtents="15,15,15" />
    5869        </collisionShapes>
    5970    </Pawn>
Note: See TracChangeset for help on using the changeset viewer.