Skip to main content
GameDev.net gamedev.net
🔒 Locked

Steering Behavior Vehicle

Started by Endemoniada Sep 8, 2010 at 11:11 PM 0 replies 1.2k views
Original Post
Endemoniada
Endemoniada
Hi guys, in the classic Reynolds paper is says this:

***

In this simple vehicle model, the control signal passed from the steering behaviors to the locomotion behavior consists of exactly one vector quantity: a desired steering force...An automobile has a steering wheel, accelerator and brake each of which can be represented as scalar quantities. It is possible to map a generalized steering force vector into these scalar signals: the side component of the steering vector can be interpreted as the steering signal, the forward component of the steering vector can be mapped into the accelerator signal if positive, or into the brake signal if negative.

***

How do I get the side and forward components of a 2D steering vector so I can map them ? I don't get it.

Thanks.
Zakwayda
Zakwayda
All that means (presumably) is that the steering vector is the sum of scalar multiples of the object's local forward and side vectors.

The forward and side vectors can be derived from the object's orientation (the details depend on how the orientation is represented). Once you have those vectors, you might construct the steering vector as follows:
steering_vector =    accelerator_force * forward +    brake_force * forward +    steering_force * side;
Obviously the brakes and the accelerator can cancel each other out fully or partially, as you would expect. (Also note that this is just an approximation of real vehicle dynamics, although it would probably work just fine for a simple simulation.)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.