This question already has an answer here:
In every scene from Star Wars, where people are in a space shuttle, flying through space, they appear to be under the force of gravity, as if they are on a planet like earth... If they were truly in space then they would float in the space shuttles like the astronauts do on the ISS.
Is there some kind of 'artificial gravity generator' equipped in each space shuttle? Or do they ever provide an explanation for this physical phenomenon?