Yes, it’s important to note that matter outside of the sphere is still attracted to the centre of the planet, it’s only matter inside that is ‘weightless’.
Sorry- I wasn’t making a point at all-
just being humourous-
the truth is, of course, that you don’t get hollow planets because there is always a force towards the centre, and even gaseous objects like stars have a gravitational pull right to the middle…
although you might well find that all stars formed around a solid rocky kernel, before fusion commenced. This rocky material vapourises and becomes the star’s metallicity.
You could never get a situation where there was an empty space in the centre of a planet or star, even if it were made of gaseous shells.
like I said, a pointless nitpick.
SF worldbuilding at
http://www.orionsarm.com/main.html