質問するログイン新規登録

回答編集履歴

1

SmoothStepについてコメントを追記

2020/06/30 22:03

投稿

Bongo
Bongo

スコア10816

answer CHANGED
@@ -95,6 +95,7 @@
95
95
  var timeLeft = transitionDuration;
96
96
  while (timeLeft > 0.0f)
97
97
  {
98
+ // Lerpの代わりにSmoothStepを使えばもっと遷移が自然に見えるかもしれない
98
99
  this.actualWeight = Mathf.Lerp(
99
100
  initialWeight,
100
101
  targetWeight,