Closed elliotnaylor closed 7 years ago
The issue actually stops the ant turning around when hitting a wall facing north and south if a collision box hasn't been hit
Ok so the entire system where the ant is hitting the wall is extremely faulty. I will have to rewrite it from scratch to make a better version.
For the sake of the first demo I am going to remove the faulty code and commit the working version. It is possible to use the directional blocks instead of the wall collision for now.
I improved on the code and now it is all working as expected.
Occasionally the ants won't turn around after stopping against a wall. But will then turn around when another ant hits a collision box and resets the direction boolean.
This issue rarely happens and I haven't found the main cause for it.