/// <summary>
        /// Blend from the current muscle position to the specified position over duration.
        /// </summary>
        /// <param name="endPosition">The position to blend to.</param>
        /// <param name="duration">The duration to blend over.</param>
        public void timedBlend(MusclePosition endPosition, float duration)
        {
            MusclePosition startPosition = new MusclePosition();

            startPosition.captureState();

            timedBlend(startPosition, endPosition, duration);
        }
Beispiel #2
0
 private void start()
 {
     startState.captureState();
     lastTime = 0.0f;
     if (Duration == 0.0f)
     {
         Duration = 0.001f;
     }
 }
 void controller_SceneLoaded(SimScene scene)
 {
     bindPosition = new MusclePosition();
     bindPosition.captureState();
     poseUndoRedoBuffer.clear();
     if (OnUndoRedoChanged != null)
     {
         OnUndoRedoChanged.Invoke(this);
     }
 }
Beispiel #4
0
 public override void capture()
 {
     targetState.captureState();
 }