|
Say for example I want to rotate my object from an inital rotation to a final one over a several frames. Is the below code snippet the right way to do this? If not, how should I go about this? (assume I've set myStartTime to Time.realtimeSinceStartup when I started doing the rotation, and that initialRotation and finalRotation have been defined somewhere else as well) void Update() { float elapsedTime = Time.realtimeSinceStartup - myStartTime;
}
(comments are locked)
|
