# How do I make a spring arm follow a velocity not a rotation

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329>\
**Category:** Cinematics & Media\
**Tags:** spring-arm, unreal-engine, vector, velocity, question\
**Created:** [August 26, 2020, 2:02am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329 "2020-08-26T02:02:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buzzcore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Buzzcore](https://forums.unrealengine.com/u/Buzzcore)\
**Post date:** [August 26, 2020, 2:02am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329/1 "2020-08-26T02:02:17Z")

</div>

When my vehicle is on the ground the spring arm should act normally (inherit x,y,z with a slight lag).

When in the air I would like the spring arm to follow the vehicle’s velocity, as in the air my vehicle can be spinning on all axis.

The best example I have of this is Rocket League:

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/2/2026dd8e07af22e9778c7170e39e6b484ba7377e.gif)

I have tried everything within the spring arm settings for this but I can’t get it working. Hope someone can help!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 26, 2020, 8:00am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329/2 "2020-08-26T08:00:14Z")

</div>

Have a look at this approach, it’s based on the advanced vehicle template:

 ![311413-rot.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/b/61ba3fd6d5ee41dfe6c58ca52a9e4198b7efaecd.jpeg)

- we check if all wheels are in the air
- if they are, we check how fast the car is spinning
- if it’s spinning fast enough, we switch the spring arm’s rotation from `Relative` (default) to `Absolute`
- in absolute, the rotation is not affected by the parent’s rotation
- when springarm rotation is absolute, the rotation follows velocity
- when springarm rotation is relative (car is on the ground), it follows the parent
- and you get to set the angle

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/c/d3c256d117ad81758a304d6fe8a40faeb9935eba.gif)](https://gyazo.com/80e55477e37755976f76c5aa89e47f8b)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/5/6154e51b9f798fe9bb0dc7fa26a64284d852fb0f.gif)](https://gyazo.com/d591ff4f0e0c320edf86c735dda56a34)

You will, most likely, need to check another state - when the car is flipped on the roof. The template tracks that variable already and it’s called _LowFriction_ - it’s used to modify physical material properties but can also be used to control camera behaviour.

---

<div class="post-metadata">

**Author:** ![Buzzcore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Buzzcore](https://forums.unrealengine.com/u/Buzzcore)\
**Post date:** [August 26, 2020, 3:26pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329/3 "2020-08-26T15:26:08Z")

</div>

Not only did you show how it’s done but you also helped me understand how it works. I managed to implement it and its working exactly how I want it to!

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/a/63a10576927f01068c3064aa76688df63fa83575.gif) ](https://dl.dropboxusercontent.com/s/b6cftai224awxk0/ezgif-7-4aeb35ac9f0d.gif?dl=1)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 26, 2020, 3:46pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329/4 "2020-08-26T15:46:37Z")

</div>

Looks wicked! Where this is going, we don’t need wheels 😉

---

<div class="post-metadata">

**Author:** ![KarimZouak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KarimZouak](https://forums.unrealengine.com/u/KarimZouak)\
**Post date:** [March 31, 2021, 11:02am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329/5 "2021-03-31T11:02:08Z")

</div>

Hi, I’m trying to follow the above for my own repurpose but am getting lost, can anybody offer advice?

I’m trying to have a marble followed by a camera. I have a SpringArm and Camera attached, and it’s working great. (I’ve disabled Inherit Pitch/Yaw/Roll because otherwise we rotate with the springarm and nausea ensues.)

What I want to do is for the springarm to rotate around the ball to show where it is going. At the moment, it maintains the absolute world direction. Ideally, it would be a smooth follow-behind.

The below does alter the rotation of the camera, but it is jittery and intense, hard to see exactly what is happening. Any advice is greatly appreciated, thank you!

 ![334216-screenshot-2021-03-31-120013.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/1/d411f1cb7775a2394afdae76fb7b9782bb55f0db.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 31, 2021, 11:50am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329/6 "2021-03-31T11:50:01Z")

</div>

> I’m trying to have a marble followed  
> by a camera.

I’d probably just have a springarm with _Absolute Rotation_ follow Velocity (no Z):

 ![334221-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/4/024ddf183d116843d55f8337355fc98426b8e6ff.png)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/3/003a9d639fd0e18df472612e70d0f0a5ff6c20a5.gif)](https://gyazo.com/d26ae2ad76116ca4964f42e4daa288fa)

Add a small lag value to rotation perhaps.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 31, 2021, 11:59am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329/7 "2021-03-31T11:59:42Z")

</div>

> but it is jittery and intense, hard to  
> see exactly what is happening

This is probably jittery due to the ball’s rolling and twisting the Right Vector.

---

<div class="post-metadata">

**Author:** ![KarimZouak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KarimZouak](https://forums.unrealengine.com/u/KarimZouak)\
**Post date:** [March 31, 2021, 12:51pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-spring-arm-follow-a-velocity-not-a-rotation/470329/8 "2021-03-31T12:51:18Z")

</div>

Thank you so much! This has got me on the right path, good enough for now. Have a great week.
