示例#1
0
        private void animateChangeInPosition(int lastPositionIndex, int currentPositionIndex, int lastFixedBoneIndex, int currentFixedBoneIndex)
        {
            //setup animations....
            if (_shortAnimationController != null)
            {
                _shortAnimationController.Stop(); //ugly, but should work
            }
            _shortAnimationController = new ShortAnimationController();
            int numFrames = Math.Max((int)(_FPS * _animateDuration), 1); //want at least one frame

            _shortAnimationController.FPS = _FPS;

            _fullWrist.HideColorMapAndContoursTemporarily();

            _shortAnimationController.SetupAnimationForLinearInterpolation(_fullWrist, lastPositionIndex, currentPositionIndex, lastFixedBoneIndex, currentFixedBoneIndex, numFrames);
            _shortAnimationController.Start();
        }