# アタッチしたアクターにコリジョンは付けられるのか？

**URL:** <https://forums.unrealengine.com/t/topic/470129>\
**Category:** World Creation\
**Tags:** attach-to-component, unreal-engine, Physics, Collision, question\
**Created:** [August 21, 2020, 6:14pm UTC](https://forums.unrealengine.com/t/topic/470129 "2020-08-21T18:14:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamo210](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tamo210](https://forums.unrealengine.com/u/tamo210)\
**Post date:** [August 21, 2020, 6:14pm UTC](https://forums.unrealengine.com/t/topic/470129/1 "2020-08-21T18:14:56Z")

</div>

「プレイヤーがレベルにあるアクターに対してレイキャストを飛ばし、ヒットした際にそのアクターを持ち上げる」というような処理を行いたいと思っています。  
この際、持ち上げるアクターを専用のソケットにアタッチしたのですが、アタッチされた持ち上げているアクターにコリジョンがなく、レベル内の他のアクターを貫通してしまいます。  
コリジョンを保ちつつ、アクターをアタッチする方法はないのでしょうか？

---

<div class="post-metadata">

**Author:** ![tamo210](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tamo210](https://forums.unrealengine.com/u/tamo210)\
**Post date:** [August 22, 2020, 2:47am UTC](https://forums.unrealengine.com/t/topic/470129/2 "2020-08-22T02:47:53Z")

</div>

HoldingComponent = HitResult-\>GetComponent();  
HoldingComponent-\>SetSimulatePhysics(false);  
HoldingComponent-\>SetCollisionProfileName(TEXT(“Holding”));  
HoldingComponent-\>AttachToComponent(GetMesh(), FAttachmentTransformRules::SnapToTargetNotIncludingScale, “Hold\_Socket”);
