Guest User

MyActor.h

a guest
Jun 2nd, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "GameFramework/Actor.h"
  6. #include "MyActor.generated.h"
  7.  
  8. UCLASS()
  9. class UNREALTUTORIAL_API AMyActor : public AActor
  10. {
  11. GENERATED_BODY()
  12.  
  13. public:
  14. // Sets default values for this actor's properties
  15. AMyActor();
  16.  
  17. // Called when the game starts or when spawned
  18. virtual void BeginPlay() override;
  19.  
  20. // Called every frame
  21. virtual void Tick( float DeltaSeconds ) override;
  22.  
  23. UPROPERTY(EditAnywhere)
  24. UShapeComponent* tBox;
  25.  
  26. UPROPERTY(EditAnywhere)
  27. UStaticMeshComponent* MyMesh; //A static mesh is essentially the default model for an actor/mob/model
  28.  
  29. UPROPERTY(EditAnywhere)
  30. float SpeedScale;
  31.  
  32. FVector PlayerStartingLocation = FVector(-351.0f, 1771.0f, 235.0f);
  33.  
  34. FVector BoxSize = FVector(1.5f, 1.5f, 1.5f);
  35.  
  36. UFUNCTION()
  37. void TriggerEnter(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
  38.  
  39.  
  40. float RunningTime;
  41. };
Add Comment
Please, Sign In to add comment