Changeset 10728 in orxonox.OLD for branches/presentation/src/util/track/action_box.h
- Timestamp:
- Jun 20, 2007, 11:39:18 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/util/track/action_box.h
r10698 r10728 16 16 virtual void tick (float time); 17 17 virtual void draw () const; 18 18 19 19 ActionBox( Track* _track, float width_2, float height_2, float depth, float stretch ); 20 20 ~ActionBox(); 21 22 21 22 23 23 bool isPointInBox( const Vector& pos ); 24 24 25 25 float getWidth_2(){ return width_2; } 26 26 float getHeight_2(){ return height_2; } 27 27 float getDepth(){ return depth; } 28 28 float getStretch(){ return stretch; } 29 29 30 30 private: 31 31 void updatePlanes(); 32 32 33 33 float width_2; //! width/2 of near plane 34 34 float height_2; //! height/2 of near plane 35 35 float depth; //! distance between near and far plane 36 36 float stretch; //! far plane will be stretched by this factor 37 37 38 38 Track* track; 39 39 40 40 Plane planes[6]; //! planes for collision. normale must point towards middle 41 41 };
Note: See TracChangeset
for help on using the changeset viewer.