Skip to content

Instantly share code, notes, and snippets.

@takopom
Created October 15, 2018 00:51
Show Gist options
  • Save takopom/c3afea69e3a9f2930ee76533df91b260 to your computer and use it in GitHub Desktop.
Save takopom/c3afea69e3a9f2930ee76533df91b260 to your computer and use it in GitHub Desktop.
LeanTweenでカメラ振動
// パラメータについて補足
// - move()でも良いはず
// - X軸方向のみ揺らした
// - 揺らす時間を短くした
// - .shakeよりも.punchの方が好みだった
LeanTween.moveLocal(mainCamera.gameObject, new Vector3(1,0,0), 0.1f).setEase(LeanTween.punch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment