# Bug when I attach a spwaned actor on socket

**URL:** <https://forums.unrealengine.com/t/bug-when-i-attach-a-spwaned-actor-on-socket/734258>\
**Category:** Blueprint\
**Tags:** attach-to-socket, unreal-engine, spawning-actors, Blueprint\
**Created:** [December 23, 2022, 12:37am UTC](https://forums.unrealengine.com/t/bug-when-i-attach-a-spwaned-actor-on-socket/734258 "2022-12-23T00:37:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ezekiel4000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ezekiel4000](https://forums.unrealengine.com/u/Ezekiel4000)\
**Post date:** [December 23, 2022, 12:37am UTC](https://forums.unrealengine.com/t/bug-when-i-attach-a-spwaned-actor-on-socket/734258/1 "2022-12-23T00:37:08Z")

</div>

Hello,

I have two actors, my thirdperson and another one (object A) that I want to equip, I have a problem when I want to attach the object A that I spawned in my blueprint of my thirdperson. I spawn the object A and get the static mesh of this actor, the same static mesh that I give as a target for the attach component to component. To do this I call an event in object A that detects with a sphere if my personange overlaps object A, When I do this, the camera bugs and goes inside my character and my character moves faster, I certainly made several mistakes (I’m a beginner) but I don’t see where. I would need help  
Thanks

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [December 23, 2022, 12:40am UTC](https://forums.unrealengine.com/t/bug-when-i-attach-a-spwaned-actor-on-socket/734258/2 "2022-12-23T00:40:41Z")

</div>

Hi Ezekiel,

Can you share a snapshot of your blueprint where you’re attaching the component - that may help give some clues…

---

<div class="post-metadata">

**Author:** ![PresumptivePanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/presumptivepanda/32/1194593_2.png) [@PresumptivePanda](https://forums.unrealengine.com/u/PresumptivePanda)\
**Post date:** [December 23, 2022, 1:53am UTC](https://forums.unrealengine.com/t/bug-when-i-attach-a-spwaned-actor-on-socket/734258/3 "2022-12-23T01:53:19Z")

</div>

Hi there @Ezekiel4000. Happy holidays!

This topic has been moved from **International** to **Programming & Scripting: Blueprint**.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this category change will help you to get an answer.

In the meantime, good luck and happy developing! 🙂

---

<div class="post-metadata">

**Author:** ![Ezekiel4000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ezekiel4000](https://forums.unrealengine.com/u/Ezekiel4000)\
**Post date:** [December 23, 2022, 11:38am UTC](https://forums.unrealengine.com/t/bug-when-i-attach-a-spwaned-actor-on-socket/734258/4 "2022-12-23T11:38:57Z")

</div>

yes of course, tell me if you want more information

 ![BP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/c/c6c28c96545cec0cd40f6ca32c9edd7ff2670879.png)

---

<div class="post-metadata">

**Author:** ![Ezekiel4000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ezekiel4000](https://forums.unrealengine.com/u/Ezekiel4000)\
**Post date:** [December 23, 2022, 2:29pm UTC](https://forums.unrealengine.com/t/bug-when-i-attach-a-spwaned-actor-on-socket/734258/5 "2022-12-23T14:29:55Z")

</div>

From what I understand I think this is from the collision sphere from the object A which create this bug because I get this message in the log : LogCharacterMovement: BP\_ThirdPersonCharacter\_C\_0 is stuck and failed to move! Velocity: X=122.75 Y=-484.70 Z=0.00 Location: X=2019.15 Y=852.30 Z=92.21 Normal: X=-0.18 Y=-0.98 Z=-0.00 PenetrationDepth:8.322 Actor:BP\_Object\_C\_0 Component:Object\_mesh BoneName:None (1 other events since notify)  
LogBlueprintUserMessages: [BP\_ThirdPersonCharacter\_C\_0] 0

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [December 23, 2022, 4:40pm UTC](https://forums.unrealengine.com/t/bug-when-i-attach-a-spwaned-actor-on-socket/734258/6 "2022-12-23T16:40:10Z")

</div>

When attaching actors to actors their collisions can start pushing on each other causing the main actor to behave weirdly. You need to probably make the newly attached object ignore the main actors collision while attached.

---

<div class="post-metadata">

**Author:** ![Ezekiel4000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ezekiel4000](https://forums.unrealengine.com/u/Ezekiel4000)\
**Post date:** [December 23, 2022, 6:18pm UTC](https://forums.unrealengine.com/t/bug-when-i-attach-a-spwaned-actor-on-socket/734258/7 "2022-12-23T18:18:13Z")

</div>

Yes this is exactly what happenend, I get the collision component from my Objet and set to no collision with “Set Collision enabled” and the weird behavior is gone, thank you all !
