public void Dispose()
        {
            if (AnimationMode.InAnimationMode())
            {
                AnimationMode.StopAnimationMode();
            }

            ResetAnimationSampler();

            sampleTrajectory.Dispose();
        }