- Home /
Question by
alexanderledev · Dec 04, 2020 at 08:53 AM ·
scripting problem
How can one rotate an object instantly?
Hello, how can I rotate a transform immediately? When I trigger an attack animation, I would like my character to face that direction. However, he sometimes only rotates about 25% of the way there before the animation is triggered.
I've tried using transform.LookAt(mousePoint) and transform.rotation = Quaternion.LookRotation().
Any help would be greatly appreciated. Thank you!
Comment
xxmariofer answers this question. Unless you want to reformat it to something else can you accept their answer.
Answer by xxmariofer · Dec 04, 2020 at 09:20 AM
both options are valid options so the issue is somewhere else
Answer by SmallLion · Dec 07, 2020 at 02:11 PM
Check with animationing. I had this and solved.May be a mistakes.