This blog is about creating simple games, and has been set up to show progress of my first games.
Sunday, 19 April 2015
Environment rotation finally fixed! :D
Going through a lot of websites that were not helpful at all with trying to solve my problem, took me a lot of time. Today after browsing of one questions on StackOverflow I decided to open Unity documentation links that were mentioned there. The same ones I read a lot of times.. What I didn't realise was that a function transform.Rotate() takes x,y,z parameters in order: z,x,y...Noticing that little change I have decided to try this again (even though that was the first function I've tried using but it didn't work). This time I've used the parameters in suggested order...It seems that everything works correctly now and I am really happy finally having this done, as this is one of the most important features I will need in my game.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment