Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/presentation/src/util/track/action_box.h @ 10759

Last change on this file since 10759 was 10728, checked in by nicolasc, 18 years ago

data bump

File size: 953 bytes
RevLine 
[10642]1/*!
2 * @file action_box.h
3 */
4
5#ifndef _ACTION_BOX_H_
6#define _ACTION_BOX_H_
7
8#include "world_entity.h"
9#include "plane.h"
10
11class Track;
12
13class ActionBox : public WorldEntity
14{
15  public:
16    virtual void tick (float time);
17    virtual void draw () const;
[10728]18
[10642]19    ActionBox( Track* _track, float width_2, float height_2, float depth, float stretch );
20    ~ActionBox();
[10728]21
22
[10642]23    bool isPointInBox( const Vector& pos );
[10728]24
[10651]25    float getWidth_2(){ return width_2; }
26    float getHeight_2(){ return height_2; }
27    float getDepth(){ return depth; }
28    float getStretch(){ return stretch; }
[10728]29
[10642]30  private:
31    void updatePlanes();
[10728]32
[10642]33    float width_2;   //! width/2 of near plane
34    float height_2;  //! height/2 of near plane
35    float depth;     //! distance between near and far plane
36    float stretch;   //! far plane will be stretched by this factor
[10728]37
[10642]38    Track* track;
[10728]39
[10642]40    Plane planes[6];  //! planes for collision. normale must point towards middle
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.