Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Racing Games, angle type proplem!

Author
Message
Jason
22
Years of Service
User Offline
Joined: 20th Sep 2002
Location:
Posted: 25th Sep 2003 22:55
Does antone know where I can get some good tutorials, explaining the AI and maths behind a Top Down racer.

I am trying to make a car track waypoints, but I am having trouble with the atanfull command.

I have defined a type for my car.

Car.An is the angle variable.

I have used Atanfull like this.

car to waypoint = Atanfull(Car.x-Waypoint(n).x,Car.y-Waypoint(n).y)

How can I adjust Car.An to point at the waypoint, for the car 0 is pointing straight up.

Any help would really be appreciated, as I am getting fairly frustrated with this one.

Login to post a reply

Server time is: 2024-09-21 01:14:25
Your offset time is: 2024-09-21 01:14:25