diff --git a/Source/Exo/Private/Characters/Components/ShootingComponent.cpp b/Source/Exo/Private/Characters/Components/ShootingComponent.cpp index c051a6e..50260c1 100644 --- a/Source/Exo/Private/Characters/Components/ShootingComponent.cpp +++ b/Source/Exo/Private/Characters/Components/ShootingComponent.cpp @@ -118,6 +118,7 @@ void UShootingComponent::PickUpGun(UStaticMeshComponent* PickedGunMesh) FAttachmentTransformRules AttachmentRules(EAttachmentRule::SnapToTarget, EAttachmentRule::SnapToTarget, EAttachmentRule::KeepWorld, true); + PickedGunMesh->SetCollisionResponseToChannel(ECC_Visibility, ECR_Ignore); PickedGunMesh->SetSimulatePhysics(false); PickedGunMesh->SetCastShadow(false); PickedGunMesh->AttachToComponent(PlayerCharacter->GetMesh(), AttachmentRules, FName(TEXT("GripPoint")));