- Home /
Set rotation to direction instantly without using an update
Hello,
I have a transform, I have a direction and I want to instantly set the rotation to this direction without using an update, all the solutions I find online are including using Update method. Any ideas?
Answer by Dealzu-The-Wikid · Apr 09, 2020 at 03:54 PM
You need to put it in the Start or Awake function....It only does this once at the beginning.
Answer by HarisKap · Apr 09, 2020 at 03:56 PM
Is not that what I am asking, I am asking which call rotates the object instantly towards a vector3 direction. For example the LookAt(Direction) works on the update since happens over time. I want instantly an object to change the direction towards a direction. Do you know which code does that? Thank you
Your answer
Follow this Question
Related Questions
Positions to rotations of a regular GO 2 Answers
How to use quaternions to apply an offset to a rotation to calibrate a controller 1 Answer
z axis doesn't follow the rotation of its object 3 Answers
move player to its rotating direction? 2 Answers
How to make a cube turn in the direction it is moving? 1 Answer