Seek Steering Behavior (AI)

In summary, the book provides a calculation for Seek behavior, which involves calculating the desired velocity and then subtracting the current velocity to obtain the necessary force to reach the desired velocity.
  • #1
Metro_Mystery
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. 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!
 
Physics news on Phys.org
  • #2
The subtraction of two velocity vectors does not result in a force. The equation provided by the book simply calculates the desired velocity, which is the vector that the agent should move towards in order to reach its target position. The SteeringForce calculation then subtracts the current velocity from the desired velocity, resulting in the necessary force that needs to be applied in order to reach the desired velocity.
 
  • #3


As a scientist, my response would be to first clarify that the equations and concepts in the book are based on simplified models and assumptions, and may not accurately reflect real-world physics. It is important to keep this in mind when trying to understand the calculations.

In the context of AI, "force" is used as a term to represent the desired direction and magnitude of movement for an agent. It does not necessarily represent a physical force in the traditional sense.

In the Seek behavior, the subtraction of two velocity vectors is used to calculate the desired direction of movement towards the target position. This desired direction is then combined with the agent's maximum speed to calculate the desired velocity. The difference between this desired velocity and the agent's current velocity is then used as the steering force, which will ultimately determine the agent's movement towards the target.

It may be helpful to think of the steering force as a "guidance" or "instruction" for the agent, rather than a literal force. This approach is commonly used in AI and computer simulations, and while it may not align with traditional physics concepts, it is a useful tool for achieving desired behaviors in autonomous characters.

If you are still having trouble understanding the equations, I would recommend seeking further clarification from the book's author or consulting additional resources on the topic. It is also important to practice and experiment with the equations to gain a better understanding of how they work in practice.
 

1. What is Seek Steering Behavior?

Seek Steering Behavior is an artificial intelligence technique used to make an object or agent move towards a specific target or goal. It is commonly used in video games and robotics to simulate realistic movement and decision-making.

2. How does Seek Steering Behavior work?

Seek Steering Behavior works by calculating the direction and speed an object or agent needs to move in order to reach its target. This is achieved by considering the object's current position, the target's position, and any obstacles in the environment. The object then adjusts its movement accordingly to gradually approach the target.

3. What are the advantages of using Seek Steering Behavior?

One of the main advantages of Seek Steering Behavior is its simplicity. It is relatively easy to implement and can produce realistic movement without the need for complex algorithms. It also allows for smooth and natural movement towards a target, which can enhance the overall user experience in video games and simulations.

4. Are there any limitations to Seek Steering Behavior?

One limitation of Seek Steering Behavior is that it relies on a predetermined target. This means that if the target moves or changes position, the agent may struggle to reach it. Additionally, it does not take into account dynamic obstacles, which can lead to collisions or unrealistic movement in complex environments.

5. How is Seek Steering Behavior different from other AI techniques?

Seek Steering Behavior is a specific type of AI technique that focuses on movement towards a target. It differs from other techniques such as A* search or neural networks, which may be used for pathfinding or decision-making. Seek Steering Behavior is often used in combination with other AI techniques to create more complex and realistic behaviors.

Similar threads

  • Introductory Physics Homework Help
Replies
2
Views
8K
Replies
10
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
2K
  • Art, Music, History, and Linguistics
Replies
2
Views
3K
Back
Top