MCPcopy Create free account
hub / github.com/DruidMech/MultiplayerCourseBlasterGame / ACasing

Method ACasing

Source/Blaster/Weapon/Casing.cpp:9–20  ·  view source on GitHub ↗

Sets default values

Source from the content-addressed store, hash-verified

7
8// Sets default values
9ACasing::ACasing()
10{
11 PrimaryActorTick.bCanEverTick = false;
12
13 CasingMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("CasingMesh"));
14 SetRootComponent(CasingMesh);
15 CasingMesh->SetCollisionResponseToChannel(ECollisionChannel::ECC_Camera, ECollisionResponse::ECR_Ignore);
16 CasingMesh->SetSimulatePhysics(true);
17 CasingMesh->SetEnableGravity(true);
18 CasingMesh->SetNotifyRigidBodyCollision(true);
19 ShellEjectionImpulse = 10.f;
20}
21
22
23

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected