Whiich class to use for creating a car racing track?

Hi,



I am developing a car racing game but I am unsure of which class to use for creating a race track. I have tried using a TerrainBlock but as far as I can gather this cannot have curved edges, therefore no rounded corners.



The other option I thought of is to construct the track from a TriMesh. Are these my only options?

Also, if I do use TriMesh is there some easy way to append one TriMesh to the end of another one (so the track can be split into sections)?



Thanks,

d418rf

I have added an extrusion class recently, maybe it can help you.

I tried using the extrusion class except I couldnt get it to work properly. The test class didnt render properly either. I decided to attempt using TriMesh instead. I got there in the end! I just hope i dont need to change the shape of it!!



One problem with doing it this way I I dont know if I can have hills in my track (how can it detect if Im going uphill and move the car accordingly?) but I can settle for that.



Thanks for the help,

d418rf

hmm, which Test do you mean? The one in jME Physics 2? What's wrong with it?

irrisor said:

hmm, which Test do you mean? The one in jME Physics 2? What's wrong with it?


My apologies, I was thinking of a different test when I said that  :-o