Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2012, 1:22:20 PM (13 years ago)
Author:
jo
Message:

Some hints added on how to proceed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/newlevel2012/data/levels/towerDefense.oxw

    r9142 r9143  
    9999                 
    100100                 <attached>
    101                
    102101                        <Model position="-0.5,-0.5,0" mesh="Playfield_ME.mesh" scale=0.8 />
    103                        
     102            <!--Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /--> <!-- Only temporary needed to help align the collisionshape -->
    104103                        <!-- This was used to mark the playfield, let's let it be here for now -->
    105104                        <!--Model position="-8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
     
    107106                        <!--Model position="8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
    108107                        <!--Model position="8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
    109                        
    110108        </attached>
     109        <collisionShapes> <!-- The collisionshape forbids other worldentities that have a collisionShape to fly through it.
     110       
     111                               TODO: Find correct size for the collisionshape; since a collisionShape is invisible
     112                               I added the crate wich currently has the same dimensions as the collisionshape.
     113                               You have to adjust the crate's scale3D as well as the collisionshape's halfExtens to
     114                               find the proper shape. -->
     115           <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
     116        </collisionShapes>
    111117    </TowerDefenseCenterpoint>
    112118
Note: See TracChangeset for help on using the changeset viewer.