Jump to content
• Advertisement

#### Archived

This topic is now archived and is closed to further replies.

# how best Accelerate to avoid obstacle ?

This topic is 5529 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

## Recommended Posts

My work is a obstacle avoiding. My question : i have a ( moving) body and obstacle. I can apply const acceleration to body that avoid obstacle. In which direction i need to apply that my fly path was in a maximal distance from the obstacle ? ( it can be solved as a 2d case) //------------- In a steering behavior works i found not much solutions. The first accelerate to negative direction to obstacle, and second direction from obstacle to point of possible contact. //------------- My tries to solve analiticaly do not promise solution.... The curve with a const acceleration ( as i remember ) is a parabola. So we need to find the parabola wich derivative is a current body speed and the distance from obstacle to parabola must be maximal possible.

#### Share this post

##### Share on other sites
Advertisement
Why does the curve have to be a parabola? Is the object moving in two dimensions? I wrote a program that did obstacle avoiding stuff once, and I just had it accelerate away from the obstacle, and it worked okay in some cases.

#### Share this post

##### Share on other sites
thanks for replay vanillacoke.

"Why does the curve have to be a parabola"
The body moving under _constant_ acceleration move by parabola.

"Is the object moving in two dimensions?" No , in 3d but thae solution lay in a plane.

"I wrote a program that did obstacle avoiding stuff once, and I just had it accelerate away from the obstacle, and it worked okay in some cases"

I agree. I have some nice solution with acceleration from obstacle , but i want to find better solution, if exist.

#### Share this post

##### Share on other sites

• Advertisement
• Advertisement

• ### Popular Contributors

1. 1
Rutin
24
2. 2
3. 3
JoeJ
18
4. 4
5. 5
• Advertisement

• 38
• 23
• 13
• 13
• 17
• ### Forum Statistics

• Total Topics
631712
• Total Posts
3001850
×

## Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!