Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10728 in orxonox.OLD for branches/presentation/src/util/track


Ignore:
Timestamp:
Jun 20, 2007, 11:39:18 AM (17 years ago)
Author:
nicolasc
Message:

data bump

Location:
branches/presentation/src/util/track
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/util/track/action_box.cc

    r10698 r10728  
    9898  assert( _track );
    9999  assert( State::getActionBox() == NULL );
    100  
     100
    101101  State::setActionBox( this );
    102  
     102
    103103  this->width_2 = width_2;
    104104  this->height_2 = height_2;
     
    106106  this->stretch = stretch;
    107107  this->track = _track;
    108  
     108
    109109  setParent( _track->getTrackNode() );
    110    
     110
    111111  toList( OM_COMMON );
    112112}
  • branches/presentation/src/util/track/action_box.h

    r10698 r10728  
    1616    virtual void tick (float time);
    1717    virtual void draw () const;
    18    
     18
    1919    ActionBox( Track* _track, float width_2, float height_2, float depth, float stretch );
    2020    ~ActionBox();
    21    
    22        
     21
     22
    2323    bool isPointInBox( const Vector& pos );
    24    
     24
    2525    float getWidth_2(){ return width_2; }
    2626    float getHeight_2(){ return height_2; }
    2727    float getDepth(){ return depth; }
    2828    float getStretch(){ return stretch; }
    29    
     29
    3030  private:
    3131    void updatePlanes();
    32    
     32
    3333    float width_2;   //! width/2 of near plane
    3434    float height_2;  //! height/2 of near plane
    3535    float depth;     //! distance between near and far plane
    3636    float stretch;   //! far plane will be stretched by this factor
    37    
     37
    3838    Track* track;
    39    
     39
    4040    Plane planes[6];  //! planes for collision. normale must point towards middle
    4141};
Note: See TracChangeset for help on using the changeset viewer.