Ejemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="transform">Transform</param>
 /// <param name="t">Localized Time</param>
 /// <param name="interpolationType">Interpolation type to use from this keyframe to the next</param>
 public gxtKeyframe(gxtAnimationPose pose, float localTime, gxtAnimationInterpolationType interpolationType = gxtAnimationInterpolationType.SMOOTH_STEP)
 {
     LocalTime = gxtMath.Saturate(localTime);
     AnimationPose = pose;
     InterpolationType = interpolationType;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="pose"></param>
 /// <param name="localTime"></param>
 /// <param name="interpolationType"></param>
 /// <returns></returns>
 public int CreateKeyframe(gxtAnimationPose pose, float localTime, gxtAnimationInterpolationType interpolationType = gxtKeyframe.DEFAULT_INTERPOLATION_TYPE)
 {
     gxtKeyframe kf = new gxtKeyframe(pose, localTime, interpolationType);
     return AddKeyframe(kf);
 }