Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #pragma once
- #include "GameFramework/Actor.h"
- #include "MyActor.generated.h"
- UCLASS()
- class UNREALTUTORIAL_API AMyActor : public AActor
- {
- GENERATED_BODY()
- public:
- // Sets default values for this actor's properties
- AMyActor();
- // Called when the game starts or when spawned
- virtual void BeginPlay() override;
- // Called every frame
- virtual void Tick( float DeltaSeconds ) override;
- UPROPERTY(EditAnywhere)
- UShapeComponent* tBox;
- UPROPERTY(EditAnywhere)
- UStaticMeshComponent* MyMesh; //A static mesh is essentially the default model for an actor/mob/model
- UPROPERTY(EditAnywhere)
- float SpeedScale;
- FVector PlayerStartingLocation = FVector(-351.0f, 1771.0f, 235.0f);
- FVector BoxSize = FVector(1.5f, 1.5f, 1.5f);
- UFUNCTION()
- void TriggerEnter(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
- float RunningTime;
- };
Add Comment
Please, Sign In to add comment