Hey, I was playing this game about marbles, and saw that you were able to move around in the marbles while inside it. How would I recreate it?

Hey, I was playing this game about marbles, and saw that you were able to move around in the marbles while inside it. How would I recreate it?
