|
Author |
Topic: Steering behavior model(s) (Read 2850 times) |
|
mflux
|
Re: Steering behavior model(s)
« Reply #15 on: Sep 9th, 2004, 1:26am » |
|
Hello Aadigi I think there's a few ways to cheat "braking" without going into drag, surface friction, etc. The immediate solution that comes off the top of my head is that when a vehicle wants to brake, it will apply a velocity force negative of its current direction of motion. This negative force will have to be limited to a "maximum" that the vehicle can brake, and should drive the velocity toward zero, and never make the vehicle go into a "negative direction" (reverse drive). I can think of some problems with this approach if you want vehicles that can both turn and brake at the same time, causing the vehicle to skid. I think you should check out "Arrival" http://www.red3d.com/cwr/steer/Arrival.html It explains very well how to cause a vehicle to slow to a stop when moving towards a desired target.
|
|
|
|
|