How to make an object walk through randomly scenario. Something he head to one side and touch the wall head to another.
In that picture Vihu is “object” and vihulaita is “wall” and vihulaita2 is “wall2”.
So when Object collision with Wall, Object stop and get force to move right speed of 50
And when Object collision with Wall2, object stop and get force to move left speed of 50.
And if you want that object move up, down, whatever, just change the angle
You can do it like that or with the timers: object move back and forth