Hi everyone, I have a little problem in a top view racing game. I’m actually developing with Box2d and I would like suggestions from the community to find the best possible solution.
I’m providing the file LoopRider.h that goes in the Erin Catto’s testbed so you can see the problem in execution.
Context : I’ve made a level editor in 3dsMax to create race tracks for Box2d, the plugin create a series of rectangles from a spline to create a wall, this way we can make a complex network of race tracks very fast.
The problem : if the car grinds a wall in a curve, the car sometimes kinda “bumps” on a rectangle’s corner even if the vertex of the following rectangle has the same position!?!
Here is the result of my observation :
1- I’ve made sure that each rectangle that follows another have their vertex at the same position (until the 5th decimal)
2- The turning rectangle in the test (the looprider) will bump at different speeds. The speed only changes the frequency of the bumping: faster looping seems to bump less often.
Questioning :
1- Is there a way to avoid the looprider bumping on the rectangle corner?
2- Is there something better that I missed in Box2d to do walls than a series of rectangles? (don’t forget I’ve put a great deal of effort creating my plugin to manage the race track creation with the spline-to-rectangle technique)
Any advise would be greatly appreciated!
I’m providing the file LoopRider.h that goes in the Erin Catto’s testbed so you can see the problem in execution.
Context : I’ve made a level editor in 3dsMax to create race tracks for Box2d, the plugin create a series of rectangles from a spline to create a wall, this way we can make a complex network of race tracks very fast.
The problem : if the car grinds a wall in a curve, the car sometimes kinda “bumps” on a rectangle’s corner even if the vertex of the following rectangle has the same position!?!
Here is the result of my observation :
1- I’ve made sure that each rectangle that follows another have their vertex at the same position (until the 5th decimal)
2- The turning rectangle in the test (the looprider) will bump at different speeds. The speed only changes the frequency of the bumping: faster looping seems to bump less often.
Questioning :
1- Is there a way to avoid the looprider bumping on the rectangle corner?
2- Is there something better that I missed in Box2d to do walls than a series of rectangles? (don’t forget I’ve put a great deal of effort creating my plugin to manage the race track creation with the spline-to-rectangle technique)
Any advise would be greatly appreciated!