- Home /
Instant Rotation
Hi. I want to rotate an object to look at a point instantly but when I use transform.LookAt it just rotates around very slowly. Is there a way to make it look at something instantly without too much code?
You sure transform.LookAt(targetTransform) does not work? If it is rotating slowly, that would then be because the object it is looking at is also moving. LookAt() should work for you, but if not you can also try Quaternion.LookRotation().
I think i've tried quaternion.rotation() and it still doesn't rotate fast enough, I need it to rotate instantly.
Answer by Firedan1176 · Sep 28, 2016 at 05:06 PM
transform.rotation = Quaternion.Euler(target.position - transform.position);
Are you sure you dont have your timescale settings messed up?
Answer by tanoshimi · Sep 28, 2016 at 05:15 PM
Try
transform.forward = target.position - transform.position;
No doesn't work. I tried changing it a little bit but it wouldn't work.
Your answer
Follow this Question
Related Questions
Object Rotation/Character Speed 1 Answer
Moving needle from one angle to another angle one time 1 Answer
Rotation with different speed for different axis 2 Answers
How to modify the rotation speed of an object using Transform.Rotate 3 Answers
Problem With Rotation Speed and Problem With Audio 2 Answers