- Home /
rotate object to touch position
Hi all,
I am using this script
But I want to rotate my object instead of moving it ( I want to shoot at a target at my touch position, so my turret has to turn first). I tried different things but it is not working.
Could anyone help me out with this one? I still want to be able to use the finger id :) that is why I like this script so much. Don't know if it is still a good script though?
greetings and thanks in advance, Aaron
Comment
Answer by crevelop · Jun 21, 2011 at 01:24 AM
Found this video quite useful:
http://www.youtube.com/watch?v=oOfPMKdJdKk
source code is here:
http://www.revelopment.co.uk/tutorials/unitytutorials/73-howtorotateanobjectbytouch