# Get forward vector from scene component returning 0 after Build

**URL:** <https://forums.unrealengine.com/t/get-forward-vector-from-scene-component-returning-0-after-build/453523>\
**Category:** Blueprint\
**Tags:** forward-vector, package, build, unreal-engine, question, Blueprint\
**Created:** [August 7, 2019, 5:26pm UTC](https://forums.unrealengine.com/t/get-forward-vector-from-scene-component-returning-0-after-build/453523 "2019-08-07T17:26:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aoshi\_Kearun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aoshi\_Kearun](https://forums.unrealengine.com/u/Aoshi_Kearun)\
**Post date:** [August 7, 2019, 5:26pm UTC](https://forums.unrealengine.com/t/get-forward-vector-from-scene-component-returning-0-after-build/453523/1 "2019-08-07T17:26:31Z")

</div>

I participated on a game jam last weekend and made a DK barrel clone with spaceships.

So, basically the game is throwing yourself from planet to planet using a “Set physics linear velocity” in the direction of an arrow (and arrow pivot for aesthetics). This is the setup worked smoothly in preview mode, also I tested with Print Strings for the forward vector of the arrow, it always returned the right direction.

 ![284437-anotacao-2019-08-07-142129.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/b/abbc7b0c80c2c1dad779bc35a4b1e17b06d7e7af.png)

![284439-anotacao-2019-08-07-1421291.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/f/d0fa579854b8b7620b890e56c1a8bdc78d9563f4.png)

Unfortunately, after I build, the ship is don’t move after entering the planet. Any help is appreciated.

![284440-anotacao-2019-08-07-142331.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/2/1a2eb08d00883e7fd8afdb3e413d819de540a72b.png)

---

<div class="post-metadata">

**Author:** ![Aoshi\_Kearun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aoshi\_Kearun](https://forums.unrealengine.com/u/Aoshi_Kearun)\
**Post date:** [August 7, 2019, 7:41pm UTC](https://forums.unrealengine.com/t/get-forward-vector-from-scene-component-returning-0-after-build/453523/2 "2019-08-07T19:41:27Z")

</div>

I’ve being able to use the Arrow Pivot Up Vector instead, but I still want to know why can’t I use the arrow forward vector.

---

<div class="post-metadata">

**Author:** ![AmonBune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AmonBune](https://forums.unrealengine.com/u/AmonBune)\
**Post date:** [January 24, 2024, 11:33pm UTC](https://forums.unrealengine.com/t/get-forward-vector-from-scene-component-returning-0-after-build/453523/3 "2024-01-24T23:33:56Z")

</div>

I have the same issue. I am using Linux and the published build just returns 0 for all the Get Forward Vector and Get Right Vector functions. It seems to be a bug in Unreal Engine.

Do you mind to share how you solved this issue exactly? I need to get the forward and right side of a camera actor / camera component, and there is no “Pivot Up Vector” on it, only a Pivot Offset.
