So I have add this bug for a little while. I'm not sure why this is happening.
Basically when the saw collides with a volume, it's supposed to change direction. See events and layout below:
This is working most of the time but sometimes it seems to trigger twice and it goes into the wrong direction.
I have attached a capx to download so you can see what happens. You may need to refresh the page a couple of times because the bug does not always happen.
Please let me know if I'm doing something wrong.
Develop games in your browser. Powerful, performant & highly capable.
I'm wondering if the same detector is getting hit twice somehow. Rather than decoding the next direction from the current one, maybe try having the detector tell which direction to go next. That way if it's hit twice, you will still go in the same direction.
Just a thought.
Good idea, thanks! I'll give it a try
blackhornet Thanks, that fixed the bug. I can sleep tonight