Hey unitarians!
I’ve got a little character controller physics problem:
In my game, you are a rectangular prism, and you have to get yourself in a little hole, which you can only fit through if you are standing upright. The controls of the game are what is really bothering me. What I want to happen is that when the user presses the up key, the cuboid rolls upwards on the x-axis, on a specified visible grid. Similarly, when the user presses the right key, the cuboid rolls sideways on the grid. The grid tiles are 1x1, while the cubiod itself is 1x2x1.
How would I go about doing this? I want the rotations to be accurate and on the grid. I am new to scripting and I don’t know where to begin.
Screenshot of what it looks like: