stk-code_catmod/src/constants.hpp
hikerstk 6daa2ef2d0 1) Removed more windows warnings.
2) Cleanup of old unused, and non-bullet code
3) Fixed wheelies, though they are currently still
   disabled in the stk_config.data file since the
   AI crashes with the new wheelie implementation.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1365 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-20 04:37:35 +00:00

64 lines
2.0 KiB
C++

// $Id$
//
// SuperTuxKart - a fun racing game with go-kart
// Copyright (C) 2004 Steve Baker <sjbaker1@airmail.net>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef HEADER_CONSTANTS_H
#define HEADER_CONSTANTS_H
#define MAX_HISTORY 50000 /* number of history events */
#define TIME_DELAY_TILL_FINISH 10.0f /* time after all player karts finish */
/*
All final units are in meters (or meters/sec or meters/sec^2)
and degrees (or degrees/sec).
*/
/* Handy constants */
#define KILOMETER 1000.000f
#define HOUR (60.0f * 60.0f)
/*
For convenience - here are some multipliers for other units.
eg 30 * MILES_PER_HOUR is 30mph expressed in m/sec
*/
#define KILOMETERS_PER_HOUR (KILOMETER/HOUR)
// Zipper related constants:
// =========================
#define ZIPPER_ANGLE 45.0
#define ZIPPER_TIME 1.0f /* Seconds */
#define ZIPPER_VELOCITY (100.0f * KILOMETERS_PER_HOUR )
// Traffic (not used at this time)
// ===============================
#define TRAFFIC_VELOCITY ( 20.0f * KILOMETERS_PER_HOUR )
/* M$ compilers don't define M_PI... */
#ifndef M_PI
# define M_PI 3.14159265358979323846f /* As in Linux's math.h */
#endif
#define NINETY_DEGREE_RAD (M_PI/2.0f)
#define DEGREE_TO_RAD(x) ((x)*M_PI/180.0f)
#define RAD_TO_DEGREE(x) ((x)*180.0f/M_PI)
#endif