Woah! Two posts in two days?!?
All kidding aside, I've been working hard on the game, perfecting the building system in every way I can. It's now ready enough that quickly and accurately building large structures is not only possible, but super fun!
You can build fortresses, trap enemies, and more!
While building was possible before yesterday, there was one major problem: You could only rotate blocks flat or facing away from you. (In other words like this: __ and like this: | -- Sorry if that doesn't make any sense! I currently don't have any visual aids at the moment.)
On the player's left hand, if they touch the touchpad, a little radial menu shows up with three directions: Up, Left and Right. (The "Up" direction puts the block flat, making it useful for floors and ceilings.)
For the left and right directions I just kept adding 90 degrees to the Y quaternion, in hopes of just having it turn 90 degrees each time, but this wasn't working.
I ended up writing two methods, as shown below:
This worked exactly as I had hoped. Now all I gotta do is add sound effects, stylize the cursor a bit more and it should look pretty great!
Thanks for reading!