|
im running the following inside a Coroutine
which works fine for the rotation itself. Now I tried to do the rotation "over time" using this
and plugging this into the Slerp function in this way.
but all I get on the GO to be rotated is a jitter, no actual rotation. Any pointers in the right direction would be appreciated.
(comments are locked)
|
|
"Time.time * 5f" won't do anything after the first second of runtime, since Slerp uses the usual 0..1 range for the third parameter. For correct usage, see the Rotation function here. thanks for the script, pointed me in the right direction. I ended up using Quaternion.Slerp(startRotation, endRotation, Mathf.Clamp01(t/rotationDuration)); but that basically is the same idea.
Jan 25 '11 at 06:57 AM
Steffen Franz
(comments are locked)
|
