Комментарии:
Why not attach the script to the player and use the transform directly? Calling GetComponent in the update is very inefficient. If you do need to do something like this, cache it in the Start() by assigning it to a local variable;
Ответитьcan u make it animated?
Ответитьdoesnt work for me, im getting errors saying 'Input' does not contain a definition for 'GetKeydown'
Ответитьthx u save me
ОтветитьThank you! This is exactly what I was looking for.
ОтветитьYou may have just saved me from failing college! Thank you!!!1
ОтветитьThank you!
ОтветитьI've spend my hole day trying to do this. thanks a lot dude
ОтветитьIt took me a week to find this! It seems so simple yet I couldn't find it anywhere else. Thank you
ОтветитьThanks so much! and it still works in 2020!
Ответитьstill works 5 years later
ОтветитьHi!
Can you help me doing the same thing using mobile touches? Thanks!
Thanks man, you're a life saver
Ответитьreally thanks. Great job dude!!!
ОтветитьGreat vid! But do you know how to activate the script when you get close to an object?
ОтветитьThis tutorial still works to today (June 2019) but note that you can't smoothly rotate things.
Ответитьeven if this video is not of great quality, it had the answer I was looking for. thank you.
ОтветитьI was Searching for a solution for mapping keys, THANKS TO YOU, BRUH!
ОтветитьThanks.
Can you help me?
i want to change using key press to button.
button click -> rotate change
Too small
Ответить