# Spring Arm collisions

**URL:** <https://forums.unrealengine.com/t/spring-arm-collisions/1261142>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [August 14, 2023, 10:07pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142 "2023-08-14T22:07:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lamaral14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lamaral14](https://forums.unrealengine.com/u/Lamaral14)\
**Post date:** [August 14, 2023, 10:07pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142/1 "2023-08-14T22:07:49Z")

</div>

Hi. I have this minigun that is attached to a spring arm so i can aim while driving:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/6/b96e16f241bbba33b5ea5d49970546c4a8f9f954.jpeg)

Its works like i wanted, but i have a problem: when sometink collides with the arm, the gun moves:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/7/aa7c3a23582b36c84e800e092c0c4350d1cb9c60.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/f/35fd03e30e286b2701f75a7ccf25f116f724c542.jpeg)

How can i fix this? any ideias?

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [August 14, 2023, 10:18pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142/2 "2023-08-14T22:18:10Z")

</div>

Your gun is a child of a spring arm. That’s why it moves.

---

<div class="post-metadata">

**Author:** ![Lamaral14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lamaral14](https://forums.unrealengine.com/u/Lamaral14)\
**Post date:** [August 14, 2023, 10:29pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142/3 "2023-08-14T22:29:09Z")

</div>

I know that, im asking how can i fix it without losing the control of the gun. The minigun is controlled by the direction of the camera…

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [August 14, 2023, 10:36pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142/4 "2023-08-14T22:36:16Z")

</div>

Get camera rotation and apply it to the gun on tick

---

<div class="post-metadata">

**Author:** ![Lamaral14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lamaral14](https://forums.unrealengine.com/u/Lamaral14)\
**Post date:** [August 14, 2023, 11:26pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142/5 "2023-08-14T23:26:59Z")

</div>

That doesnt really work because of the diferent pivots…

---

<div class="post-metadata">

**Author:** ![Shunitzo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shunitzo/32/1194547_2.png) [@Shunitzo](https://forums.unrealengine.com/u/Shunitzo)\
**Post date:** [August 14, 2023, 11:27pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142/6 "2023-08-14T23:27:36Z")

</div>

Use world rotation

---

<div class="post-metadata">

**Author:** ![Lamaral14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lamaral14](https://forums.unrealengine.com/u/Lamaral14)\
**Post date:** [August 14, 2023, 11:34pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142/8 "2023-08-14T23:34:37Z")

</div>

Thank you it seems to be working

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [September 2, 2023, 1:15pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142/9 "2023-09-02T13:15:49Z")

</div>

Or, for simplicity go back to using control rotation, and check if your gun’s spring arm has ‘Do collision test’ turned on (I think it should be off for your purposes)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 2, 2023, 1:16pm UTC](https://forums.unrealengine.com/t/spring-arm-collisions/1261142/10 "2023-10-02T13:16:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
