0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【UE5】ゲームのカメラワーク

0
Posted at

現在UE5の勉強中です。やったことのメモを取るために書いていきます。
今日は簡単なカメラワークを行いました。

image.png

今回はPlayerの視点からLevel上に置いてあるCameraActorに移動する仕組みになっています。
Actor型の変数を作り、インスタンス編集可能に設定。
Level上のCameraActorを入れることで動く。

カメラの動きはもともとのPlayerの視点から滑らかに移動させるためにSetViewTargetWithBlendのBlendTimeを1~1.5ほどに調整するといい。BlendTimeは何秒かけてTargetの位置に移動するかの値。

その後Delayを入れて、もとのPlayer視点に戻すためにSetViewTargetWithBlendのTargetをPlayerCharacterにして戻しています。

これでObjectなどに注目を向けられます。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?