LoginSignup
0
1

More than 3 years have passed since last update.

【Unity】【3DAnimation】第一回 幾何学オブジェクトをアニメーション

Last updated at Posted at 2019-10-31

全体のゴール

  • UnityChanのアセットに含まれる各ファイルの意味を理解できること。
  • 簡易人型モデルを作成し自作のアニメーションを作成できること。

今回の目標

 まず第一回は肩慣らしとして、タイムラインを用いて幾何学オブジェクトに対してアニメーションを行う。
今回は参考サイトに沿って手を動かしています。

手順

  • Create -> 3D Object -> Cubeでアニメーションをさせるためのオブジェクトを生成する。
    aa.png

  • Window -> Animation -> Animationで「Animationウインドウ」を表示する。
    aa.png

  • Createボタンを押してアニメーションを新規作成する。
    aa.png

  • Add Propertyでアニメーションするプロパティを選ぶ。
    以下はRotationに対するアニメーションの設定例。
    Rotation.yを1:00(1秒)かけて120°回転させる。
    aa.png

  • 「Animation」タブの左下にある「Dopesheet」を「Curves」に切り替えると、ベジェ曲線を用いて、よりなめらかなアニメーションを行うことができる。
    aa.png

  • 元のウィンドウでは以下の変化が起きている。
    Cubeのインスペクタに「Animator」コンポーネントが追加されている。
    「Cube.controller」「CubeRotate.anim」が作成されている。
    aa.png

  • オブジェクトに親子関係を持たせてアニメーションを行うと? (親がEarthHigh 子がMoon)
     ⇒ 地球の回転/拡大/移動は月も連動した。親のアニメーションは子に伝播する。
    名称未設定.png

[参考サイト]
https://www.atmarkit.co.jp/ait/articles/1411/20/news045.html

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1