Race track generation

How can I generate racing track similar the Wii's "WII Play"?

http://www.oniva.com/upload/1356/cow.jpg



the track is flat and the left / right side has a bounding box + third person controller.



I am thinking to modify the TestThirdPersonController.java



any open source game in http://www.koders.com/ implement similar thing?

You can generate the track by using 2D polygons, and modify the controller in the following way. Java2D has some methods for detecting when a point is inside/outside of a closed polygon. This could be easily transformed into your track, and then using the same polygon you can setup your geometry.