fix: one line missing

This commit is contained in:
Kubson96 2025-07-04 13:07:04 +02:00
parent 93c5e9d82c
commit dc5823001d

View File

@ -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")));