# Rotate an towards object velocity direction

**URL:** <https://forums.unrealengine.com/t/rotate-an-towards-object-velocity-direction/470840>\
**Category:** XR Development\
**Tags:** direction, rotation, unreal-engine, FeatureRequest, Physics, velocity, question\
**Created:** [September 5, 2020, 2:14am UTC](https://forums.unrealengine.com/t/rotate-an-towards-object-velocity-direction/470840 "2020-09-05T02:14:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kwixb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kwixb](https://forums.unrealengine.com/u/Kwixb)\
**Post date:** [September 5, 2020, 2:14am UTC](https://forums.unrealengine.com/t/rotate-an-towards-object-velocity-direction/470840/1 "2020-09-05T02:14:29Z")

</div>

Hello! I am looking for a way to rotate an object toward the velocity direction. Essentially, I have an object that I am throwing in VR and I want to point the **top** ( **Up Vector** ) of the object in the direction it is traveling in when thrown. I cannot seem to figure this one out. Assistance would be greatly appreciated!

 ![312473-velocity.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/3/8c39bc7c587bda0ddf841541590d00e96d55097e.png)

---

<div class="post-metadata">

**Author:** ![WillWeaver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WillWeaver](https://forums.unrealengine.com/u/WillWeaver)\
**Post date:** [September 5, 2020, 5:08am UTC](https://forums.unrealengine.com/t/rotate-an-towards-object-velocity-direction/470840/2 "2020-09-05T05:08:42Z")

</div>

The simplest way would probably be to add a projectile movement component to the object. That has a built in function for making the object rotate towards its movement direction.

Alternatively, you can do something like this:

 ![312447-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/4/dc4594218f1ade808908082ca09b5eaece68abcc.png)

Add on some rotation interp to smooth it out, but that itself will give you the rotation you want, assuming the actor’s “forward” is along positive X in local space.

---

<div class="post-metadata">

**Author:** ![WillWeaver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WillWeaver](https://forums.unrealengine.com/u/WillWeaver)\
**Post date:** [September 5, 2020, 5:12am UTC](https://forums.unrealengine.com/t/rotate-an-towards-object-velocity-direction/470840/3 "2020-09-05T05:12:02Z")

</div>

Since you want the up vector to be the part pointing forward, you can modify the output of FindLookAtRotation by adding/subtracting 90 to/from pitch or yaw, depending on the desired flight orientation.
