|
I am using the following code :
A ~= 90 degree rotation around Z is performed, but the rotation speed is more and more slow and at the end my rotation is of almost 90 but not exactly. I need to perform a rotation of exactly 90 with a constant speed. How can i fix my code to perform such a thing?
(comments are locked)
|
|
I find it's best to keep code simple, so you can understand and change it. Step 1 is to make something go from 0 to 90. Step 2 is to rotate that much:
That particular use of Lerp is for exactly what you wrote -- more fast than slow down and never quite get there. It's good for going to a moving target.
(comments are locked)
|
