fix: one line missing
This commit is contained in:
parent
93c5e9d82c
commit
dc5823001d
|
|
@ -118,6 +118,7 @@ void UShootingComponent::PickUpGun(UStaticMeshComponent* PickedGunMesh)
|
||||||
FAttachmentTransformRules AttachmentRules(EAttachmentRule::SnapToTarget, EAttachmentRule::SnapToTarget,
|
FAttachmentTransformRules AttachmentRules(EAttachmentRule::SnapToTarget, EAttachmentRule::SnapToTarget,
|
||||||
EAttachmentRule::KeepWorld, true);
|
EAttachmentRule::KeepWorld, true);
|
||||||
|
|
||||||
|
PickedGunMesh->SetCollisionResponseToChannel(ECC_Visibility, ECR_Ignore);
|
||||||
PickedGunMesh->SetSimulatePhysics(false);
|
PickedGunMesh->SetSimulatePhysics(false);
|
||||||
PickedGunMesh->SetCastShadow(false);
|
PickedGunMesh->SetCastShadow(false);
|
||||||
PickedGunMesh->AttachToComponent(PlayerCharacter->GetMesh(), AttachmentRules, FName(TEXT("GripPoint")));
|
PickedGunMesh->AttachToComponent(PlayerCharacter->GetMesh(), AttachmentRules, FName(TEXT("GripPoint")));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user