Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 1, 2008, 11:09:43 PM (17 years ago)
Author:
rgrieder
Message:
  • Added support for attaching physical WorldEntities to each other. Currently you can only add static objects to kinematic/dynamic/static other objects. Future plans involve attaching kinematic objects to static/kinematic ones. All other combinations don't make sense at all.
  • Added CollisionShape, SphereCollisionShape and CompoundCollisionShape

Usage for collision shapes (example):

<LinearEntity collisionType="kinematic">

<attached>

<Model position="0,0,0" scale=10 mesh="ast1.mesh" />
<StaticEntity position="0,10,0" collisionType="static"> # Everything else than "static" fails!

<collisionShapes>

<SphereCollisionShape radius=40 position="10,10,-10"/>
<CompoundCollisionShape position="4,4,4"> # You can also make compound shapes directly

<SphereCollisionShape radius=10/>

</CompoundCollisionShape>

</collisionShapes>

</StaticEntity>

</attached>

</LinearEntity>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/orxonox/OrxonoxPrereqs.h

    r2300 r2303  
    151151    class Scores;
    152152
     153    // collision
     154    class CollisionShape;
     155    class SphereCollisionShape;
     156
    153157    // tools
    154158    class BillboardSet;
     
    209213class btCollisionObject;
    210214class btGhostObject;
     215
    211216class btCollisionShape;
    212217class btSphereShape;
    213 
    214 
     218class btCompoundShape;
     219
     220class btDiscreteDynamicsWorld;
     221
     222// lua
    215223struct lua_State;
    216224
Note: See TracChangeset for help on using the changeset viewer.