Advertisement
Guest User

Untitled

a guest
Nov 27th, 2016
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #include "YourGameName.h"
  4. #include "HitActor.h"
  5.  
  6.  
  7. AHitActor::AHitActor()
  8. {
  9. CapsuleComponent = CreateDefaultSubobject<UCapsuleComponent>(TEXT("CapsuleCollider"));
  10. RootComponent = CapsuleComponent;
  11.  
  12. CapsuleComponent->SetCollisionResponseToAllChannels(ECR_Block);
  13. }
  14.  
  15. void AHitActor::NotifyHit(class UPrimitiveComponent* MyComp, AActor* Other, class UPrimitiveComponent* OtherComp, bool bSelfMoved, FVector HitLocation, FVector HitNormal, FVector NormalImpulse, const FHitResult& Hit)
  16. {
  17. Super::NotifyHit(MyComp, Other, OtherComp, bSelfMoved, HitLocation, HitNormal, NormalImpulse, Hit);
  18.  
  19. //Your logic goes here
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement