| 22 | |
| 23 | |
| 24 | void ACasing::BeginPlay() |
| 25 | { |
| 26 | Super::BeginPlay(); |
| 27 | |
| 28 | CasingMesh->OnComponentHit.AddDynamic(this, &ACasing::OnHit); |
| 29 | CasingMesh->AddImpulse(GetActorForwardVector() * ShellEjectionImpulse); |
| 30 | } |
| 31 | |
| 32 | void ACasing::OnHit(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit) |
| 33 | { |
nothing calls this directly
no outgoing calls
no test coverage detected