|
In editor scripts you can save euler angle curves with these names: Properties saved as These properties need to be saved using AnimationUtility.SetEditorCurve In either case, Quaternion curves are generated from the Euler curves and the Quaternion curves are then stored alongside the Euler curves. When building a player, only the Quaternion curves are included while the Euler curves are stripped. The runtime engine always uses Quaternion curves for animation playback of rotations. Alternative the Quaternion curves can be saved directly: Properties saved as localRotation (.x, .y, .z, .w) are combined and stored directly. This can be done at runtime using AnimationClip.SetCurve. (However, as usual, quaternion values should only be set directly by people who absolutely know what they're doing. The x, y, z, w values of Quaternions have nothing to do with normal rotation angles but rather are based on an extension of complex numbers.) Note that the combine step when setting Quaternion curves directly may modify the curves. For example, if one of the curves has a key at a certain time, then all of the four curves will get a key at that time, for optimization reasons. The same combine step also applies for position and scale curves, when set using the SetCurve function. thx alot for this detailed answer! anyway i switched to the Amazing iTween to add some awesomeness to the animation :) thx again btw i when i sign up in the unity forums the confirmation link is never sent :( i know this is not the place for that but i cant even contact the administrators! if u can give me a mail to contact or other confirmation methodz i would be thankful!
Sep 05 '10 at 01:24 AM
vyruz
(comments are locked)
|
