// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "GameFramework/Actor.h" #include "RuntimeMeshComponent.h" #include "LandActor.generated.h" UCLASS() class TERRAINGEN_API ALandActor : public AActor { GENERATED_BODY() public: // Sets default values for this actor's properties ALandActor(); // Called when the game starts or when spawned virtual void BeginPlay() override; // Called every frame virtual void Tick( float DeltaSeconds ) override; //void OnConstruction(const FTransform& Transform) override; void Generate(); FBox BoundingBox; UPROPERTY(EditAnywhere) URuntimeMeshComponent* LandMesh; UPROPERTY(EditAnywhere, Category = Dimensions) int32 NumSectionsHorizontal; UPROPERTY(EditAnywhere, Category = Dimensions) int32 NumSectionsVertical; UPROPERTY(EditAnywhere, Category = Dimensions) int32 VertexDistance = 5; // Number of vertices per section edge UPROPERTY(EditAnywhere, Category = Dimensions) int32 SectionSize = 800; };