# Forward/Up/Right Vector とは？ (翻訳/要約)

**URL:** <https://forums.unrealengine.com/t/forward-up-right-vector/363197>\
**Category:** Community & Industry Discussion\
**Tags:** forward-vector, beginner, root-component, unreal-engine, vector, question\
**Created:** [July 7, 2016, 4:37am UTC](https://forums.unrealengine.com/t/forward-up-right-vector/363197 "2016-07-07T04:37:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ymars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ymars](https://forums.unrealengine.com/u/ymars)\
**Post date:** [July 7, 2016, 4:37am UTC](https://forums.unrealengine.com/t/forward-up-right-vector/363197/1 "2016-07-07T04:37:52Z")

</div>

(以下は、英語スレッドの質問を翻訳/要約したものです。)

非常に基礎的な質問で恥ずかしいのですが (しかも名前のとおりなのでしょうから)、Forward/Up/Right/Left Vector の意味を確認したいのです。どこにも説明が見つからなかったものですから。Forward vector とは、コンポーネントまたはアクタにおいて正確にはどのようなものなのでしょうか？

Asked by AllenGingrich

[英文スレッド](https://answers.unrealengine.com/questions/63068/what-is-a-forwardupetc-vector.html)

---

<div class="post-metadata">

**Author:** ![ymars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ymars](https://forums.unrealengine.com/u/ymars)\
**Post date:** [July 7, 2016, 4:57am UTC](https://forums.unrealengine.com/t/forward-up-right-vector/363197/2 "2016-07-07T04:57:24Z")

</div>

Forward Vector

アクタが真っ直ぐ正面に向かった時の方向です。 **ルートコンポーネントを基準にします** 。

Right Vector

アクタのルート コンポーネントが正面を向いた時の右方向です。

Up Vector についても同様です。(上方向のベクタです。)

Answered by Rama

---

<div class="post-metadata">

**Author:** ![ymars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ymars](https://forums.unrealengine.com/u/ymars)\
**Post date:** [July 7, 2016, 4:59am UTC](https://forums.unrealengine.com/t/forward-up-right-vector/363197/3 "2016-07-07T04:59:05Z")

</div>

GetActorUpVector は、アクタのルート コンポーネントの Z (up 上方) を取得する関数です。  
GetActorForwardVector は X (forward 前方)、GetActorRightVector は Y (right 右方向) を取得します。それらのベクタは、ワールド空間におけるベクタとして取得されます。各ベクタの大きさは 1 です。

GetUpVector、GetForwardVector、GetRightVector はコンポーネントからの方向を取得します。

ですから、たとえば、ルート コンポーネントとしてカプセル コンポーネントをもつアクタがある方向に面していて、カプセル コンポーネントに子としてアタッチされているカメラ コンポーネントがあるとします。アクタを中心にしてカメラを動かすと、GetActorForwardVector (アクタからの方向) と GetForwardVector (カメラからの方向) によって取得される方向は異なることになります。

Up のベクタをネゲートする (正負を反転させる) と、Down の方向が得られます。Forward をネゲートすると Backward (後ろ方向) が得られます。

Answered by AnXgotta
