# Rotate a sphere based on a LineTrace

**URL:** <https://forums.unrealengine.com/t/rotate-a-sphere-based-on-a-linetrace/552005>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, UE4-27, Blueprint\
**Created:** [May 8, 2022, 2:37pm UTC](https://forums.unrealengine.com/t/rotate-a-sphere-based-on-a-linetrace/552005 "2022-05-08T14:37:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 8, 2022, 8:13pm UTC](https://forums.unrealengine.com/t/rotate-a-sphere-based-on-a-linetrace/552005/9 "2022-05-08T20:13:42Z")

</div>

And then a quick google, gives me answering the question 🙂

> [@How to transform one vector into another?](https://forums.unrealengine.com/t/how-to-transform-one-vector-into-another/480181):
>
> I’m trying to transform vector A into vector B, but it jumps at the last moment: [332236-ezgifcom-optimize.gif] Close up: [332237-ezgifcom-optimize1.gif] Code is wrong, I must assume. What is the correct way of doing this? Thanks slight_smile PS: They can be different lengths and at any angle, but will have a common point ( as seen here ).

---

_[View the full topic](https://forums.unrealengine.com/t/rotate-a-sphere-based-on-a-linetrace/552005)._
