Last change
on this file since 9219 was
7048,
checked in by bensch, 19 years ago
|
orxonox/trunk: modelEntity should now also be able to load momentum and movement
|
File size:
697 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file model_entity.h |
---|
3 | * Definition of the ModelEntity, that handles the Display of an atmosphere for orxonox. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _MODEL_ENTITY_H |
---|
7 | #define _MODEL_ENTITY_H |
---|
8 | |
---|
9 | /* INCLUDES */ |
---|
10 | #include "world_entity.h" |
---|
11 | |
---|
12 | /* FORWARD DECLARATION */ |
---|
13 | |
---|
14 | //! A Class to handle a ModelEntity |
---|
15 | class ModelEntity : public WorldEntity |
---|
16 | { |
---|
17 | public: |
---|
18 | ModelEntity(const TiXmlElement* root); |
---|
19 | |
---|
20 | virtual ~ModelEntity(); |
---|
21 | |
---|
22 | virtual void loadParams(const TiXmlElement* root); |
---|
23 | |
---|
24 | void setSpeed(float x, float y, float z); |
---|
25 | void setMomentum (float angle, float x, float y, float z); |
---|
26 | |
---|
27 | virtual void tick(float dt); |
---|
28 | |
---|
29 | private: |
---|
30 | Vector* speed; |
---|
31 | Quaternion* momentum; |
---|
32 | }; |
---|
33 | |
---|
34 | #endif /* _MODEL_ENTITY_H */ |
---|
35 | |
---|
36 | |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.