How do I create walls where my player can't go trough?

I am making a space game where my spaceship needs to dodge asteroids, but I can’t make it happen that my spaceship can’t go trough walls. So how do I make impassable walls?

You can use the separate objects action.


Thank you very much this will help my games really much!

now my walls actually work :tada::tada::tada: