Changeset 5994 in orxonox.OLD for trunk/src/world_entities/world_entity.h
- Timestamp:
- Dec 9, 2005, 10:43:31 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.h
r5511 r5994 28 28 29 29 void loadParams(const TiXmlElement* root); 30 30 31 void loadModel(const char* fileName, float scaling = 1.0f); 32 void setModel(Model* model, unsigned int modelNumber = 0); 33 Model* getModel(unsigned int modelNumber = 0) const { return this->model; }; 34 31 35 bool buildObbTree(unsigned int depth); 36 /** @returns a reference to the obb tree of this worldentity */ 37 BVTree* getOBBTree() const { return this->obbTree; }; 32 38 33 39 /** @param visibility if the Entity should be visible (been draw) */ … … 46 52 47 53 void drawBVTree(unsigned int depth, int drawMode) const; 48 /** @returns a reference to the obb tree of this worldentity */49 BVTree* getOBBTree() const { return this->obbTree; };50 54 51 55 /* @returns the Count of Faces on this WorldEntity */ … … 58 62 59 63 protected: 60 Model* model; //!< The model that should be loaded for this entity.61 BVTree* obbTree; //!< this is the obb tree reference needed for collision detection62 64 // CharacterAttributes* charAttr; //!< the character attributes of a world_entity 63 65 64 66 private: 67 Model* model; //!< The model that should be loaded for this entity. 68 BVTree* obbTree; //!< this is the obb tree reference needed for collision detection 69 65 70 bool bCollide; //!< If it should be considered for the collisiontest. 66 71 bool bVisible; //!< If it should be visible.
Note: See TracChangeset
for help on using the changeset viewer.