この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
wiki:ue4:tips:501 [2015/04/27 13:47] step |
wiki:ue4:tips:501 [2015/04/27 22:26] (現在) step |
||
---|---|---|---|
ライン 1: | ライン 1: | ||
====== アクターの回転(4.7.6) ====== | ====== アクターの回転(4.7.6) ====== | ||
- | 回転の細かいノードに関してはここが詳しい。 | + | 回転のノードに関してはここが詳しい。 |
[[http://historia.co.jp/archives/1820|[UE4] BlueprintのRotatorノードまとめ | historia Inc - 株式会社ヒストリア]] | [[http://historia.co.jp/archives/1820|[UE4] BlueprintのRotatorノードまとめ | historia Inc - 株式会社ヒストリア]] | ||
ライン 8: | ライン 8: | ||
{{:wiki:ue4:tips:ue4_actor_rotate01.png?300|}} | {{:wiki:ue4:tips:ue4_actor_rotate01.png?300|}} | ||
- | 「Add Actor World Rotation」は相対的にYaw/Pitch/Rollで回転させることが出来る。 | + | 「Add Actor World Rotation」は現在地から相対的にYaw/Pitch/Rollで回転させることが出来ます。 |
ライン 14: | ライン 14: | ||
<sxh cpp; title: MyActor.cpp> | <sxh cpp; title: MyActor.cpp> | ||
- | AddActorWorldRotation(FRotator(0.0f, 1.0f, 0.0f)); | + | void AMyActor::Tick( float DeltaTime ) |
+ | { | ||
+ | Super::Tick( DeltaTime ); | ||
+ | |||
+ | // 相対的に回転 | ||
+ | AddActorWorldRotation(FRotator(0.0f, 1.0f, 0.0f)); | ||
+ | } | ||
</sxh> | </sxh> |