Page 1 of 1

Incorrect function usage: addAngle

PostPosted: Fri Feb 25, 2011 4:48 pm
by Zehper48
Hey everybody,
I'm working on a taxi game, and for the driving part i looked at the demo GE Rally (viewtopic.php?f=6&t=5204)
And i got an error that says

Incorrect function usage: addAngle
and here is my code on that line
Code: Select all
vectoradd(&angle, &directional_velocity, addAngle(angle, -90), myDriftLateralSpeed);


anybody know how to fix it? :D
Thank you

Re: Incorrect function usage: addAngle

PostPosted: Fri Feb 25, 2011 9:34 pm
by Game A Gogo
Simply redownload the game... it works fine for me.

Also make sure to copy the scripts found in the global codes, especially this one:
Code: Select all
double addAngle( double angle1, double angle2 )
{
  // adds two angles together ensuring result is less than 360
  double result;
 
  result = angle1 + angle2;
 
  if ( result >= 360 ) result  -= 360;
  if ( result < 0 ) result += 360;


  return result;


}//CODE BY JAZZeBOB