Original Post
Hey
I have a simple program for now - 2 simple models displayed on the screen (I made both models using Wings3D) , first represents a road with 3 stations along its way and second is a "vehicle" going down this road. My question is how can I make the vehicle stop in front of each station (obviously without colliding with it). I was thinking of placing a boundedBox in front of each station, but the problem is positioning it (Q2: how can I get the length and width of the displayed model(s)). I never worked with boundingBoxes before so I tried to find some examples on-line and found Riemers tutorials, but they are unpractical because they are tied to the chapters before, and at this point I don't have time to go over all of them (particularly they use previously placed objects like buildings to place their boundingBoxes, which again gives me trouble with placing mine).
My goal is to get the "vehicle" to start from the beginning of the road (on users command) stop in front of each station (again wait for users input to continue) and when it reaches the end of the road to stop beside it.
At this point I have the first and the last part working fine, please help me make the rest work. I mentioned using boundingBoxes because it is the only collision detection method I know, but if you have any other method that you think will work better, it would be very welcome.
I postet this question at DirecX and XNA forum, but got 0 responses so far. Please help
Tnx
I have a simple program for now - 2 simple models displayed on the screen (I made both models using Wings3D) , first represents a road with 3 stations along its way and second is a "vehicle" going down this road. My question is how can I make the vehicle stop in front of each station (obviously without colliding with it). I was thinking of placing a boundedBox in front of each station, but the problem is positioning it (Q2: how can I get the length and width of the displayed model(s)). I never worked with boundingBoxes before so I tried to find some examples on-line and found Riemers tutorials, but they are unpractical because they are tied to the chapters before, and at this point I don't have time to go over all of them (particularly they use previously placed objects like buildings to place their boundingBoxes, which again gives me trouble with placing mine).
My goal is to get the "vehicle" to start from the beginning of the road (on users command) stop in front of each station (again wait for users input to continue) and when it reaches the end of the road to stop beside it.
At this point I have the first and the last part working fine, please help me make the rest work. I mentioned using boundingBoxes because it is the only collision detection method I know, but if you have any other method that you think will work better, it would be very welcome.
I postet this question at DirecX and XNA forum, but got 0 responses so far. Please help
Tnx