1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Seek Steering Behavior (AI)

  1. Jun 9, 2008 #1
    1. The problem statement, all variables and given/known data

    I'm having trouble understanding the physics equations related to Steering Behaviors For Autonomous Characters (present in the book "Programming Game AI by example").

    For those that don't know- Seek is a kind of behavior whereby an object with a given mass, current position & velocity attemps to seek to a target position.

    2. Relevant equations

    In the book, Mat Buckland calculates Seek like so (in Pseudocode)

    def Seek()
    DesiredVelocity = Normalize(TargetPos - VehiclePos) * VehicleMaxSpeed
    SteeringForce = DesiredVelocity - VehicleVelocity
    return SteeringForce

    3. The attempt at a solution

    Seek is stated, in the book- to return a steering force, which is "the force required, when added to the agents current velocity vector, gives the desired velocity. He calculates it like this:

    How does the subtraction of two velocity vectors suddenly become a force?

    My heads in a spin- any help is greatly appreciated!
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted