Last change
on this file since 568 was
523,
checked in by nicolasc, 17 years ago
|
- removed an not needed header
- made cmakeclearcache safe, that it only deletes files that it should
|
File size:
864 bytes
|
Line | |
---|
1 | #ifndef INERTIAL_NODE_H |
---|
2 | #define INERTIAL_NODE_H |
---|
3 | |
---|
4 | #include "OgrePrerequisites.h" |
---|
5 | |
---|
6 | #include "orxonox_prerequisites.h" |
---|
7 | |
---|
8 | |
---|
9 | namespace orxonox { |
---|
10 | |
---|
11 | class InertialNode |
---|
12 | { |
---|
13 | public: |
---|
14 | InertialNode(Ogre::SceneNode*, Ogre::Vector3); |
---|
15 | ~InertialNode(); |
---|
16 | |
---|
17 | InertialNode* createChildNode(); |
---|
18 | |
---|
19 | InertialNode* getParentNode(); |
---|
20 | |
---|
21 | Ogre::SceneNode* getSceneNode(); |
---|
22 | |
---|
23 | Ogre::Vector3 getSpeed(); |
---|
24 | |
---|
25 | Ogre::Vector3 getWorldSpeed(); |
---|
26 | |
---|
27 | void addSpeed(Ogre::Vector3); |
---|
28 | |
---|
29 | protected: |
---|
30 | InertialNode(InertialNode*, Ogre::Vector3 speed = Ogre::Vector3::ZERO); |
---|
31 | void addChild(InertialNode*); |
---|
32 | |
---|
33 | public: |
---|
34 | |
---|
35 | protected: |
---|
36 | InertialNode **childList_; |
---|
37 | int childListSize_; |
---|
38 | int childListIndex_; |
---|
39 | |
---|
40 | Ogre::SceneNode *node_; |
---|
41 | Ogre::Vector3 speed_; |
---|
42 | |
---|
43 | InertialNode* parentNode_; |
---|
44 | |
---|
45 | }; |
---|
46 | |
---|
47 | } |
---|
48 | |
---|
49 | #endif /* INERTIAL_NODE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.