Advertisement
Dieton

BreakActor.h

Dec 13th, 2023 (edited)
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | Gaming | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "CoreMinimal.h"
  6. #include "GameFramework/Actor.h"
  7.  
  8. #include "Interfaces/HitInterface.h"
  9.  
  10. #include "BreakableActor.generated.h"
  11.  
  12. class UGeometryCollectionComponent;
  13.  
  14. UCLASS()
  15. class SLASH_API ABreakableActor : public AActor, public IHitInterface
  16. {
  17.     GENERATED_BODY()
  18.    
  19. public:
  20.     ABreakableActor();
  21.     virtual void Tick(float DeltaTime) override;
  22.  
  23.     virtual void GetHit_Implementation(const FVector& ImpactPoint) override;
  24.  
  25. protected:
  26.     virtual void BeginPlay() override;
  27.  
  28. private:
  29.     UPROPERTY(VisibleAnywhere)
  30.     UGeometryCollectionComponent* GeometryCollection;
  31.  
  32. };
  33.  
Tags: Unral Engine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement