Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 71 and Version 72 of content/LevelHowTo


Ignore:
Timestamp:
Nov 11, 2015, 6:06:48 PM (9 years ago)
Author:
fvultier
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v71 v72  
    178178}}}
    179179You always need to set both the collisiondamage and the enablecollisiondamage attribute.
    180 
     180== Collision shapes ==
     181The most common collision shapes are the box collision shape and the sphere collision shape. However there are more types of collision shapes in Orxonox:
     182{{{
     183#!xml
     184<StaticEntity position="0,0,0" collisionType="static">
     185  <collisionShapes>
     186    <SphereCollisionShape   position="0,0,0" radius="100" />
     187    <CylinderCollisionShape position="0,200,0" radius="50" height="150" />
     188    <BoxCollisionShape      position="0,400,0" halfExtents="30, 50, 80" />
     189    <ConeCollisionShape     position="0,600,0" radius="50" height="150" />
     190    <PlaneCollisionShape    position="0,800,0" normal="0, -1, 0" offset="30" />
     191  </collisionShapes>
     192</StaticEntity>
     193}}}
     194In this example the static entity has five collision shapes. Flying into any of these will cause a collision detected by the physics engine.
    181195== Spawnpoints ==
    182196A Spawnpoint is the '''entrance point''' for controllable entities (spaceships). Without a spawnpoint no level can work!