[this is extracted from a thread to try and get a wider set of eyes looking at the question viewtopic.php?f=3&t=8085)
I am simulating a car driving on a road and am trying to achieve a realistic behavior of making a turn at a corner.
What I have so far is building on path-following algorithms in AI (basic ones.) The behavior that I see is more like a hovercraft - no side-to-side friction means that while the car moves in the general correct direction, it overshoots and wobbles around the goal. This is no surprise, now that I understand it.
My question: how do I give my car side to side friction to make it stick more to the direction it is going to and turns in a more orderly way?
One suggestion was to look at a tensor damping controller which is available in the Flash port. I am working in Java. Still I looked at the corresponding Flash code and it is quite confusing because it seems to be solving a more general problem and anyway I don't know what a tensor is.
Does anyone have any additional suggestions on this tricky question?
Thanks!
I am simulating a car driving on a road and am trying to achieve a realistic behavior of making a turn at a corner.
What I have so far is building on path-following algorithms in AI (basic ones.) The behavior that I see is more like a hovercraft - no side-to-side friction means that while the car moves in the general correct direction, it overshoots and wobbles around the goal. This is no surprise, now that I understand it.
My question: how do I give my car side to side friction to make it stick more to the direction it is going to and turns in a more orderly way?
One suggestion was to look at a tensor damping controller which is available in the Flash port. I am working in Java. Still I looked at the corresponding Flash code and it is quite confusing because it seems to be solving a more general problem and anyway I don't know what a tensor is.
Does anyone have any additional suggestions on this tricky question?
Thanks!