Animating an idle character in a rotating/moving room.

I’m wondering if it would be possible to force a character into a walking/climbing animation while idle, if the room they are in is moving? As an example, let’s say a character is on a spacecraft that’s taking off from a planet, and the room they are in rotates forcing the character to move due to the shift in gravity.