Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9919 in orxonox.OLD for branches/ODE/src/world_entities/terrain.h


Ignore:
Timestamp:
Nov 5, 2006, 9:07:04 PM (18 years ago)
Author:
bottac
Message:

CrPhysicsFullWalk on Static Models and BSP Patches almost working. libODE≥0.7 required.
Screenshot: http://people.ee.ethz.ch/~bottac/Collision_ODE/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ODE/src/world_entities/terrain.h

    r9869 r9919  
    1212
    1313#include "world_entity.h"
     14#include  <ode/ode.h>
    1415
    1516// FORWARD DECLARATION
     
    2627{
    2728  ObjectListDeclaration(Terrain);
    28 
     29 
    2930 public:
    3031  Terrain(const TiXmlElement* root = NULL);
     
    3233  Terrain(DebugTerrain debugTerrain);
    3334  virtual ~Terrain();
     35
     36  void go();
     37  void checkCollisionTerrain(WorldEntity* worldEntity); /*!< WorldEntities use this function to check wheter they collided with the BspEntity.
     38                                                      If a collision has been detected, the collides-function of worldEntity will be called.*/
    3439
    3540  void init();
     
    5358   Model*              vegetation;
    5459   int                 modelList;
    55 
     60   bool loaded;
    5661   HeightMap*          heightMap;
    5762   Material*           heightMapMaterial;
    5863   Vector              terrainScale;
     64   unsigned int*       Ind;
     65
     66   dTriMeshDataID   ODE_Geometry; //!< ODE Geometry Data of the static model
     67   dGeomID          ODE_Geom_ID; //!< ID of ODE Geometry Data
     68   dWorldID world;
     69   dSpaceID space;
     70   dJointGroupID contactgroup;
     71   dContact contact[300];
    5972};
    6073
Note: See TracChangeset for help on using the changeset viewer.