Hello everyone.
I hope that I am posting under the correct section of the forum for the issue I am having.
Here is what I want to achieve and what my approach is:
The easiest way to picture what I am trying to do is that a hamster is in a ball. The hamster can move in all directions, but he is always in place. The ball will only rotate, but the ball will stay in position.
I have a player with a character controller attached. I have a spherical environment that the character is in which I want to rotate the environment instead of the player. Here is the hierarchy for my setup.
MasterNULL
Spherical Environment
Player
I have two Joystick set up the same as the Penelope Tutorial. Left Joystick (Fwd,Back, Left, Right) and the Right Joystick(rotation of the characters Y and to look up and down).
Within the code, I have the Left Joystick control the rotation of the MasterNull. So if I press Fwd on the Left Joystick, it rotates the MasterNULL in the Z. My issue is that If I rotate the character around to 180 and I go past a certain point, the controls go in reverse and/or I would not be able to move past a certain point, the Z becomes the X so when I continue to press forward, the world spins sideways.
Is my approach to rotating the environment incorrect?