This commit is contained in:
2020-01-27 17:12:49 +05:00
parent 28e8e3bdc0
commit 93d2f58f69
8 changed files with 32 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6
View File
@@ -3,6 +3,8 @@
#include "RailwayCarriage.h"
#include "Components/StaticMeshComponent.h"
#include "Components/SphereComponent.h"
// Sets default values
ARailwayCarriage::ARailwayCarriage()
@@ -25,6 +27,10 @@ ARailwayCarriage::ARailwayCarriage()
wheel_3 = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("wheel_3"));
wheel_3->AttachTo(railwayBody);
// support to focus component
//sphere_0 = CreateDefaultSubobject<USphereComponent>(TEXT("sphereForWheelFocus"));
//sphere_0->SetupAttachment(wheel_0);
}
+26 -1
View File
@@ -6,6 +6,10 @@
#include "GameFramework/Actor.h"
#include "RailwayCarriage.generated.h"
UCLASS()
class RAILWAYWORKER_API ARailwayCarriage : public AActor
{
@@ -36,8 +40,29 @@ protected:
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category ="Location")
FVector oldLocation;
// name railway carriage
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Name")
FName nameCarriage;
// components to focus camera
//UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
// USphereComponent* sphere_0;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
UStaticMeshComponent* sphere_1;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
UStaticMeshComponent* sphere_;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
UStaticMeshComponent* sphere_3;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
UStaticMeshComponent* sphere_4;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
UStaticMeshComponent* sphere_5;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
UStaticMeshComponent* sphere_6;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
UStaticMeshComponent* sphere_7;
public:
// Called every frame