Pledge algorithm

Hello everyone,
I’m new to working with CoBlocks and was trying to get a Pledge algorithm working in a 3d setting.
I first started grouping walls and giving them a name so I can always tell the program what to do when hitting the group of walls.

My first problem is that collision with groups somehow doesn’t seem to work.
My second problem is that I don’t know how to tell the program something like:
“If there is a wall to your left, go forward. If there is no wall to your left, turn 90 degrees to the left.”

Can I implement new blocks for this?

I understand what you mean by creating a bot that automatically finds its way to a certain location, so I have the following suggestion:
1 my solution (it not good ):

2 scratch solution (i try to make but it too lag ):

Hello Henry,
Thanks for the suggestion.
I was already able to do it in Scratch.
Your solution looks really complicated, but I will give it a look. Thank you!

1 Like