imagination XD

realizing dream

Nitro Racer XD development stuck

Leave a comment

First, when developing Nitro Racer XD, the wheel physics was made me dizzy. After solved it, there’s a new problem with the AI. The AI are retarded. The AI sees something in front of them, they don’t brake, but they just hit player’s in front of them and then respawn and then can’t move or driving in reverse direction. But the ‘Retarded’ AI was solved, even now the AI still a bit retarded. They see you are in front of them, they brake or sometimes turn left / right till they hit object.

But the PROBLEM in this GAME that really really really really making me crazy is, GM WAYPOINTER ! It’s position manager for racing game. You know it’s very very important in racing game. I asked on Unity Answers, Unity Forum, but no one answers it!!! Not sure if they are avoiding me or they just don’t know the answer.

I already discussed with my friend but i don’t think it’s working. And this is the method i use to make a position manager.

  1. GM Waypointer : GM Waypointer is a race position manager that attached in GM / every Waypoints by using Vector3.Distance. Who is nearest to the Waypoint, it’s the lead. But it was failed, because i can’t figure it out how to make the player knows its ranking.
  2. LiNER : LiNER is a race position manager that attached in every player’s car. Activate when a player hits a triggered box collider and then check if the player which is just hit the line is in front of me, the player rank was +1, and otherwise if the player which is just hit the line is in my behind, i was +1. But i don’t use it because all player thinks they are number 1.
  3. Vektor3DotDot : Vektor3DotDot is a race position manager that attached in every player’s car. Use Vector3.Dot to check the distance to other player. Not used because of complexity.
  4. TiMECORRECTOR : TiMECORRECTOR is a race position manager that attached in waypoint and also update the race standings everytime you hit the waypoint. Who is fastest to the waypoint its the lead. It’s record time you reached the checkpoint and compare it to other. The Reason i don’t want to use this because, i can’t figure it out how to make the player knows its ranking.
  5. Linecaster : Linecaster is a race position manager that attached in waypoint. Who is nearest to waypoint, it’s the lead. I know it same with GM Waypointer, but this use Linecast not Vector3.distance. Each AI Shoots ray to waypoint. AI Distance value send to all waypoint. Then Waypoint sort the distance. From AI kart, find a distance that has same value with waypointer, and then the waypointer returns it length. I’m doing this right now.

If you have any suggestion for position manager, please help me. This code freaking me out. Make me stressed till i sick again.

Advertisements

Author: IMGVERTEX

Started making games since 13 year old. 3D CGI Weeaboo | VFX Otaku | Anime Researcher | Indie Game Dev | VR Chuunibyou

FEED ME

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s