source: golgotha/src/golg/objs/vehic_lib.hh

Last change on this file was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 915 bytes
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef G1_VEHIC_LIB_HH
10#define G1_VEHIC_LIB_HH
11
12#include "arch.hh"
13#include "math/num_type.hh"
14#include "math/pi.hh"
15#include "math/angle.hh"
16
17//helper functions for vehicle AI
18
19//rotates and snaps angle FROM to angle TO at turnspeed SPEED
20//returns the direction it rotated (-1,0,or 1)
21i4_float i4_rotate_to(i4_float &from, i4_float to, i4_float speed);
22
23//snaps angle FROM so that its between 0 and 2pi
24
25#endif
Note: See TracBrowser for help on using the repository browser.