Any idea in implementing steering behaviour
Posted: Wed Feb 03, 2021 6:39 pm
I wanted to mäke smooth pathfinding movement like in "the escapists". I used A* and made the object move to a node in the path(by small dt steps in update) until the position is met then move on to the next node in the path. But the check makes the object stop before getting there and then start again so it still looks blocky.
Then I thought of getting only the needed nodes(nodes that object can reach in a straight line) and using the same technique but now the stopping would be less noticeable...but I had trouble implementing it so I found https://gamedev.stackexchange.com/ques ... 1596#81596 and I still couldn't implement it(I'm like that sometimes ) but then I heard about steering behaviour and thought that's where I should go, looked at https://www.nonsequitoria.com/2521/ and https://natureofcode.com/book/chapter- ... us-agents/...but still had trouble implementing it (despite code examples but I don't know maybe right now I'm to impatient ).
So long story short(and that was pretty long) does anyone have any idea of how to do/an example of a lua implementation of steering behaviour(without love.physics, I just use bump.lua).
p.s. if anyone has any ideas on the corner-to-corner path thing(the first one with a link I failed at )that's welcome too.
Then I thought of getting only the needed nodes(nodes that object can reach in a straight line) and using the same technique but now the stopping would be less noticeable...but I had trouble implementing it so I found https://gamedev.stackexchange.com/ques ... 1596#81596 and I still couldn't implement it(I'm like that sometimes ) but then I heard about steering behaviour and thought that's where I should go, looked at https://www.nonsequitoria.com/2521/ and https://natureofcode.com/book/chapter- ... us-agents/...but still had trouble implementing it (despite code examples but I don't know maybe right now I'm to impatient ).
So long story short(and that was pretty long) does anyone have any idea of how to do/an example of a lua implementation of steering behaviour(without love.physics, I just use bump.lua).
p.s. if anyone has any ideas on the corner-to-corner path thing(the first one with a link I failed at )that's welcome too.