I'm trying to create a 2D game with a traffic intersection:

top-down image of a complex intersection, with cars shown as rotated rectangles

My car game-objects need to pass through the intersection without colliding with each other, and without stopping, if possible.

How can I implement such a behaviour?

  • \$\begingroup\$ Please clarify what you mean. Are you asking for an algorithm on how a car would determine whether it is safe to go? Are you asking how to use libgdx to draw the cars? etc... Being specific and succinct helps prevent your questions from being downvoted. \$\endgroup\$ – spectacularbob May 5 '16 at 21:16
  • \$\begingroup\$ what i need is an algorithm to determine the path and speed for the car to move through the intersection without collision \$\endgroup\$ – unfamous May 5 '16 at 21:20
  • \$\begingroup\$ Are you looking for something like the second video on cs.utexas.edu/~aim/?p=video ? That site has links to papers with algorithms. \$\endgroup\$ – amitp May 5 '16 at 21:39
  • \$\begingroup\$ yes.that's exactly what i'm looking for. thank you \$\endgroup\$ – unfamous May 5 '16 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.