Questions tagged [steering-behaviors]

A set of strategies used to direct the movement of AI agents - especially flocks and crowds - by combining vectors from one or more local avoidance/approach rules to obtain a net acceleration in each update, "steering" the agent in response to sometimes overlapping environmental considerations.

Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

Why does this obstacle avoidance steering behaviour get stuck going left and right?

I am studying obstacle avoidance steering behaviour. So far I got arrive seek flee, and wander behaviours working, so the math should be right. Why doesn't this avoid steer behaviour work, though? It ...
user avatar
  • 217
0 votes
0 answers
33 views

How to move an enemy to sneak up on the player from behind, using forces?

I have this code to move the enemy: (for x, same for y) ...
user avatar
  • 217
1 vote
0 answers
32 views

Anisotropic steering

I'm trying to create a library for steering AI in games, following the article by Craig Reynolds. In the article, he discusses a "simple vehicle model", wherein every vehicle has some ...
user avatar
  • 575
0 votes
2 answers
142 views

Grouping Around a Point and Moving Together With Steering Behaviors

I have a group of enemies that move together. I have them grouped around a point by setting their target to be a point at the center of the group. I have combined the "Seek" and "...
user avatar
1 vote
1 answer
85 views

How to create the slow random movement effect you see in shmup enemy idles?

I’ve noticed in a lot 2D shmups, after enemies accelerate onto screen and arrive at their arrival point, they don’t simply sit static at their arrival position, but rather begin to gently move in ...
user avatar
  • 1,307
1 vote
1 answer
142 views

How can I my homing missile avoid walls (2D)? [closed]

Okay, I have the homing missile implemented. It will follow the player, but I want it to avoid the walls. I tried out A* but I want to make my own. I need some help plzz.
user avatar
0 votes
0 answers
182 views

How should I combine A* with steering?

I want to combine A* pathfinding with evasion, pursuit, and fleeing. For example, if I tell an agent to move to a position and avoid enemy agents on the way, it will create an A* path towards that ...
user avatar
  • 157
0 votes
0 answers
33 views

Finding the site of the potential collision between 2 vehicles

I've been trying to implement the unaligned collision avoidance steering behavior. I get what needs to be done on a high level, but struggle with the maths behind it. On Craig Reynolds site, he ...
user avatar
  • 59
0 votes
0 answers
25 views

Steering behaviours that gaurentee not to hit something

I'm really struggling how people make steering behaviours that guarantee a given agent will never hit something. I want to have a flocking algorithm that the agents can follow each other and also ...
user avatar
  • 123
2 votes
1 answer
542 views

How to Steer a Moving Object Away From Another Object(s)

I'm working with C# in Unity, and I'm making a top-down space shooter game in which there are many different AI-controlled ships flying around. The problem is that these ships often fly on top of one ...
user avatar
2 votes
1 answer
132 views

Framerate Dependant Steering Behaviour

I've been studying steering and flocking behaviors, if not directly from Craig Reynolds work on Steering Behaviors For Autonomous Characters (http://www.red3d.com/cwr/steer/). I understand the basic ...
user avatar
3 votes
1 answer
195 views

Dodge different type of obstacles

I'm writing a 2D game where the player has to kill a Ninja. This Ninja is coming closer with a constant speed chasing the player. The Map has some static obstacles like stones no one can pass. The ...
user avatar
  • 161
0 votes
1 answer
140 views

Controlling a thrustered 2D space ship with angular rotation and max speed

In my game I have a computer controlled ship that is accelerated by a thruster: with a constant force and in the direction of the ship's current orientation/rotation angle. Thrusting My ship has a ...
user avatar
3 votes
3 answers
132 views

How to implement smooth wandering on an annulus?

I am creating a 2D action platformer and want to create some steering behavior for a mage enemy. Basically, I want the mage to smoothly wander inside an annulus centered on my player. Below is an ...
user avatar
  • 1,307
0 votes
1 answer
78 views

Steering constantly turning in circles

I've been working on a fish system in a compute shader but bugs have been drowning me. The latest bug had me strip almost all the functionality to track down: Fish keep turning in circles. It starts ...
user avatar
  • 251
1 vote
1 answer
313 views

Confused about calculation of steering force

I'm reading Programming Game AI by Example, by Mat Buckland. What I don't understand there is why the individual behaviors return a vector representing change in velocity, but the combined result is ...
user avatar
2 votes
1 answer
174 views

How to implement swooping movement?

I am trying to code some swooping behavior for a flying enemy in my 2D platformer. The ideal behavior has the enemy starting from an arbitrary height above the ground, then accelerating downward and ...
user avatar
  • 1,307
1 vote
0 answers
81 views

How to implement back and forth steering behavior?

I am trying to implement some behavior for a flying enemy in my 2D platformer. The desired behavior is for the enemy to fly back and forth across the player, harrowing him. If the player was ...
user avatar
  • 1,307
0 votes
1 answer
353 views

What does distance divided by acceleration mean?

I'm reading a book named "Programming Game AI by Example". Here's a method to help an autonomous character to slow down when it's getting closer and closer to its target: ...
user avatar
  • 103
1 vote
0 answers
103 views

Converging at position and angle using motor-based rigidbody movement

I am given a rigidbody positioned in \$\mathbb{R}^2\$. It is a box of length \$l\$ and height \$\epsilon\$. The position of the box's left center is described by \$\vec{p}\$, and its angle from the x-...
user avatar
  • 11
3 votes
4 answers
483 views

How to combine steering forces?

I am trying to understand how to implement and combine steering vectors for autonomous agents as described by Craig Reynolds. My understanding is that each steering force should be calculated ...
user avatar
0 votes
1 answer
209 views

Vector field collision avoidance

I'm developing a simple "Geometry Wars" like game: 2D world and multiple enemy spaceships. The enemies should be able to pursue the player and avoid collisions between them at the same time. I've ...
user avatar
  • 105
1 vote
2 answers
517 views

How would I go about implementing a collision avoidance check, avoiding moving objects from multiple directions?

So I'm making a testbed for an AI actor(ship). It's a simple asteroids game using an AI controlled actor. I'm doing this using VS, monogame. I have implemented a simple steering behaviour using a ...
user avatar
  • 13
0 votes
1 answer
165 views

How to implement wall-following behavior?

I am working on an action platformer and am trying to implement an enemy with simple wall-following behavior. I want the enemy to follow the boundary of whatever connected constellation of walls it is ...
user avatar
  • 1,307
3 votes
0 answers
113 views

Arrival Steering Behavior stop before reaching evader

Im doing steering behaviors and trying to stop before reaching the evader. Instead of reaching the evader at its center, I need it to stop before. I cant seem to figure this out though. My code is ...
user avatar
  • 121
2 votes
1 answer
79 views

move toward object and transition to circling around it.

While it's easy for me to get a object circle around another and move toward it, i've got a few problems I couldn't find a solution to, yet. Ill go here as follows: I) description of scenario II) ...
user avatar
0 votes
1 answer
272 views

Is PID considered Steering Behavior?

So I've recently used a PID controller to build a bot for a 2d physics based game. I also did a bit of reading on steering behavior but am still confused over one thing: Is a PID controller considered ...
user avatar
  • 109
0 votes
2 answers
154 views

Approaches on detecting if a car should steer left or right considering a next direction

I'm developing the A.I. of my racing game, and I'm having an unforeseen problem. I manage to get the bot to drive by itself by accelerating in the direction of an angle that is returned using the ...
user avatar
3 votes
2 answers
1k views

How can I apply steering behaviors to a car controlled with turning and acceleration?

I feel like I've got my head around steering behaviors, but I've having trouble applying them to a car. The steering behaviors return forces that one could apply to an object that can move in any ...
user avatar
  • 591
6 votes
1 answer
174 views

Group path following

A path is defined as a list of positions for units to follow sequentially to navigate terrain. For example, ...
user avatar
  • 2,031
1 vote
1 answer
107 views

Steering behaviors: how to flee then go back towards the hunter?

I have implemented a Wander and Flee steering behavior and it works like this: When the entity is not hunted by anything it wanders around. But when it is hunted by the player it will flee away from ...
user avatar
  • 255
0 votes
1 answer
120 views

Unity2D Having trouble steering gameobject

So I am making a 2d maze game where one of the enemies has to follow the player once it detects the player. I am currently using a steering method to steer the enemy towards the player and also when ...
user avatar
  • 21
1 vote
0 answers
300 views

starting point for a soccer game AI [closed]

I would like to build a simple but challenging soccer game. I can define simple as not need to be realistic and challenging having a good team sense that could colaborate doing nice plays. I have ...
user avatar
  • 1,075
-1 votes
1 answer
220 views

Steering Behavior Pursuit quick question

In the code below, you will see Heading(). Is that just a position that is normalized? If not, then what is the heading? ...
user avatar
  • 121
1 vote
2 answers
414 views

Steering Behavior Seeking

I am trying put a seek feature in my code. Just frame code, not actual code. ...
user avatar
  • 121
0 votes
1 answer
395 views

How to implement Boids steering efficiently? (ie. find nearest neighbours of moving entities)

As I understand it, modern pathfinding uses ideas such as Boids steering on top of traditional A* and Dijkstra's algorithm. It's easy to find recommendations for implementing Dijkstra's algorithm ...
user avatar
  • 1,007
1 vote
0 answers
394 views

Reimplemented steering seek behavior from PyGame to LÖVE is much slower than original

I'm learning about steering behaviors and watched this nice explanation tutorial - https://www.youtube.com/watch?v=g1jo_qsO5c4&feature=youtu.be with the source code available at https://github.com/...
user avatar
  • 121
0 votes
1 answer
173 views

How to create follow leader behavior?

Assume that this behavior has Separation behavior. I tried to implement the FollowLeader behavior from this article. In the code ...
user avatar
  • 491
0 votes
2 answers
4k views

Unity3D - Smooth rotation for seek steering behavior

I am trying to implement Reynolds' seek steering behaviour, but I am having problems on the rotation part. This is what I have: ...
user avatar
1 vote
0 answers
64 views

Best way to create defence(withdraw) algorthim libgdx?

I have created user body and enemy body. Enemy body uses the steering behavior created by gdx AI. User body have it own control inputprocessor. World doesnt have gravity. Enemy body arrives the user ...
user avatar
8 votes
2 answers
636 views

3D collision avoidance: finding the updated velocity vector (outside the "collision-velocities" cones)

I am trying to understand and implement the mechanism of a fully 3D collision avoidance (steering behavior) system for flight movement (six degrees of freedom), currently focusing on circumventing ...
user avatar
  • 529
0 votes
1 answer
591 views

Raycasting. Corner trap

In my top-down game character moves to target (pathfinding) also avoiding obstacles with Raycasting(Central ray with whiskers), but situation like on picture causes shiver and unneeded turning (...
user avatar
1 vote
0 answers
203 views

Steering and wall hugging problem

What I'm hoping to achieve is that when the player steers into a wall the movement is smoothed out by hugging along the wall, moving only with the velocity parallel to the wall, zeroing out the normal ...
user avatar
  • 161
1 vote
1 answer
621 views

FollowPath steering behavior

I'm having a problem with AI movement in my top-down game. AI builds path and than moves using libgdx FollowPath (this problem is still actual) steering behavior. I have some solutions, but can't ...
user avatar
1 vote
1 answer
224 views

Is reinforcement learning overkill for a vehicle steering bot?

I'm slightly familiar with the reinforcement learning (through this edx.org MOOC). Also I'm aware of reactive planning technique. I want to write a vehicle bot for a racing game, where cars have to ...
user avatar
4 votes
2 answers
2k views

calculating the weights for direction vectors to a target

I have an entity that is allowed to move in a fixed amount of directions. Let's call a the angle between two directions. r is the length of each direction vector. Now the entity wants to head from its ...
user avatar
  • 45
2 votes
2 answers
306 views

How to stop Follow Path steering behavior when reached target?

I'm using libgdx Follow Path Steering Behavior in my top-down game. When unit reaches the end of the path, it goes to the start (not directly, but following path), then to the end and so on. How to ...
user avatar
4 votes
1 answer
2k views

Steering behaviours: collision avoidance with rectangles

I'm trying to implement collision avoidance steering behaviour using rectangles. Most of the tutorials I've found are with circles, and there's a substantial difference. For example, I've been reading ...
user avatar
4 votes
1 answer
1k views

Local avoidance together with any-angle types of A* Pathfinding

Recently I have been implementing the Block A* any-angle path-finding algorithm in a project I have, for which I need extremely efficient results due to the large number of NPCs. However, I still do ...
user avatar
0 votes
0 answers
167 views

Deterministic steering behaviors

I'm working on a turn based strategy game (like Jagged Alliance), where the player moves his units individually during his turn, while the enemies (zombies) all move and react simultaneously. I use ...
user avatar