The Vector Circle, could this be it?

Today while I was on a car I started analyzing the road, I kept thinking about how does the human brain know what to do?
Take this picture for example:

I am sure that almost instantly as you saw the picture you knew you would have to start steering left to prevent running into the wall. Why is that?

In my opinion, perhaps the first thing that tells us that we probably want to start steering is the Walls!

If I start thinking about this on a more mathematical point of view, if I draw a Normal(Yellow) on the point of collision with my eyesight(Red), the velocity vector(Green) will start drifting towards the left, thus making the car move to the left.
Up to this point this would be a pretty close description on how Containment (A type of Steering Behavior) works, but There is one important thing I notice on this picture.

At first when you saw it, you where pretty calm on the fact that you could steer slowly away because it is a pretty comfortable turn, but that is when I realized that not only is the angle of the wall important, but we also need to look at the distance between the wall and myself.


Look at the picture above, the first thing that runs through your brain is probably not the angle of the wall, but instead your first reaction would be to try and stop to prevent a crash, Therefore I feel that I should probably try and make sure I break a certain amount depending on my distance from the wall.



After a couple of Sketches and having multiple Ideas, I thought of the Vector Circle:




Lets take the first example and see it with the Vector Circle:


On this example all the Red and Green vectors will be used to calculate the new Vector, and if you notice 6 of the 10 vectors are pushing on the opposite direction of the car, therefore the car will slow down and also it will use the 6 vectors that are pushing left to make the car move left.

Here is a very small animation demonstrating how it should look like:

No comments:

Post a Comment