samowen62 / DeathRaceGame

Code for Death Race (tentative). A racing game similar to f zero gx!
2 stars 4 forks source link

Make AI move towards Boostpanels #12

Open samowen62 opened 6 years ago

samowen62 commented 6 years ago

idea;

  1. Onload connect boostpanel bidirectionally to trackpoint
  2. On new trackpoint check if current or just next(probably this one) has a boostpanel.
  3. If so store this as a target trackpoint
  4. Point ship towards it. However don't do this if the angle between where it is pointed and will have to point is too large. Also don't do this if the boostpanel's trackpoint is behind the current one (if this is the case unload the target trackpoint).