/// <summary>
 /// Set the keyframes to a valid value relative to 
 /// the current keyframe
 /// </summary>
 void SetKeyframes()
 {
     if (ClipBone == null)
         return;
     if (ClipBone.Keyframes.Count > 0)
     {
         Keyframe1 = ClipBone.Keyframes[m_currentKeyframe];
         if (m_currentKeyframe == ClipBone.Keyframes.Count - 1)
             Keyframe2 = Keyframe1;
         else
             Keyframe2 = ClipBone.Keyframes[m_currentKeyframe + 1];
     }
     else
     {
         // If there are no keyframes, set both to null
         Keyframe1 = null;
         Keyframe2 = null;
     }
 }
 public void Clear()
 {
     m_currentKeyframe = 0;
     m_isConst = false;
     m_assignedBone = null;
     Rotation = default(Quaternion);
     Translation = Vector3.Zero;
     Player = null;
     Keyframe1 = null;
     Keyframe2 = null;
     m_clipBone = null;
 }