|
hi, I want to simply rotate object on Z-axis 59 degrees if A-button is clicked,
but rotate function description says, Eular Angles. when I saw huge I article on Eular angles on wikipedia I hid beneath the table hoping it would go away :S is there a converter or some simpler tutorial explaining eular angles or unity function that uses normal angles ? oh and btw whats key kode for A-button? unity reference said A <-, but this gives me error so i'm stuck with space ;|
(comments are locked)
|
|
Here: Try this script - it should solve all your problems:
The snippet of code above smoothly rotates the cube. If you just want it to 'go', remove the P.S. Hiding under beds is much safer, and you should always ask all your Unity-related questions here. :) works like a charm, thx man :D
Apr 02 '10 at 10:25 PM
Hellwalker
Your code was framerate-dependent, and also defining
Apr 02 '10 at 11:11 PM
Eric5h5
@Eric5h5: Thanks a lot. I didn't think of that - I'm still a beginner in the logic of coding. Although I know the API, I keep forgetting those minute details that make things go.
Apr 03 '10 at 12:00 AM
e.bonneville
(comments are locked)
|
