/// <summary> /// モーション再生を終了する /// </summary> public void StopMotion(bool toIdentity = false) { if (CurrentMotionProvider != null) { CurrentMotionProvider.Stop(); } if (toIdentity) { CurrentMotionProvider = null; } }
/// <summary> /// ITransformUpdaterのメンバーの実装 /// </summary> public bool UpdateTransform() { if (lastTime == 0) { lastTime = motionTimer.ElapsedMilliseconds; } else { long currentTime = motionTimer.ElapsedMilliseconds; ElapsedTime = currentTime - lastTime; if (CurrentMotionProvider != null) { CurrentMotionProvider.Tick(context.Timer.MotionFramePerSecond, ElapsedTime / 1000f, morphManager); } lastTime = currentTime; } return(true); }