- #1
- 10
- 0
Homework Statement
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.
Homework Equations
In the book, Mat Buckland calculates Seek like so (in Pseudocode)
def Seek()
DesiredVelocity = Normalize(TargetPos - VehiclePos) * VehicleMaxSpeed
SteeringForce = DesiredVelocity - VehicleVelocity
return SteeringForce
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.
How does the subtraction of two velocity vectors suddenly become a force?
My heads in a spin- any help is greatly appreciated!