On the inside, the internal self-righting mechanism that allows the Sphero ball to propel itself works similar to how someone inside one of those giant inflatable spheres can climb the walls to get it rolling. For BB-8, this has been upgraded with a vertical support to holds its head in place using a magnet.