Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3596 in orxonox.OLD for orxonox/trunk/src/track_manager.h


Ignore:
Timestamp:
Mar 17, 2005, 6:03:46 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: borders for the Player, so he cannot move out of the line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/track_manager.h

    r3594 r3596  
    2222#define TMAN_DEFAULT_CURVETYPE BEZIERCURVE
    2323#define TMAN_DEFAULT_DURATION 10
    24 
     24#define TMAN_DEFAULT_WIDTH    10
    2525
    2626//! A Graph-Element, that holds the curve-structure of a Level.
     
    5454  float endTime;             //!< The time at which this Track ends.
    5555  float jumpTime;            //!< The Time this Track has to jump to its preceding Track (only >0 if Track isJoined==true)
     56  float width;               //!< Th width of the Path. This tells the Player(s), how far he(they) can go to the left/right.
    5657  int nodeCount;             //!< The count of points this TrackElement has.
    5758  Curve* curve;              //!< The Curve of this TrackElement
     
    166167  inline Vector calcPos(void) const;
    167168  inline Vector calcDir(void) const;
     169  float getWidth(void) const;
    168170  void tick(float dt);
    169171  void jumpTo(float time);
Note: See TracChangeset for help on using the changeset viewer.