![]() Sorry if you found my explanation a little confusing, it's kinda hard to put this idea into your head without a 3D animation or example, but if you play the game Space Engineers (or Stationeers) then you should know just what I'm talking about with the whole block rotation thing. ![]() I have had other difficult problems in game development, but this one just really seems to stump me. For example, if the player starts facing +Z, and the Insert and PageUp keys roll the block left and right respectively, then, the player turns the camera to face +X and hits Insert to roll the block to the left, it will instead rotate the block down towards the player instead of rolling it to the left. I thought that this task would be relatively easy, by just directly rotating the block around these axes, but I then noticed that when the player rotates the camera all of the rotations are still absolute according to the world, not the player. I already have a snap-to-grid system in place, as there are hundreds of tutorials for that online, but what I'm having trouble with is the rotation of the blocks. You can create shooter games, platformer games, educational games and more with Unity. Unity provides you with the opportunity to create your own 2D and 3D games. I'm working on coding a building system similar to that of Space Engineers, where all blocks are snapped to the grid, and you can rotate blocks on all 3 axes using the 6 keys above the arrow keys (Insert, Home, PageUp, Delete, End, and PageDown) to rotate the block along the x, y, and z axes. Some popular games that have been built with Unity include Cuphead, Pillars Of Eternity, Ori And The Blind Forest, Escape Plan, and Hearthstone.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |