BlockAllDynamic not working

If you made a blueprint and put a sphere in it, and wrote some movement code, it will still go right through the wall. You also have to write the collision detection code.

Or, you could use physics, or inherit from ‘character’ or ‘pawn’.