180 | | |
| 180 | == Collision shapes == |
| 181 | The 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 | }}} |
| 194 | In this example the static entity has five collision shapes. Flying into any of these will cause a collision detected by the physics engine. |