diff --git a/Content/test/Blueprints/Instance/InstanceRailWorker.uasset b/Content/test/Blueprints/Instance/InstanceRailWorker.uasset index f39a368..5183b9c 100644 Binary files a/Content/test/Blueprints/Instance/InstanceRailWorker.uasset and b/Content/test/Blueprints/Instance/InstanceRailWorker.uasset differ diff --git a/Content/test/Blueprints/RailwayCarriages/BP_RailwayCarriage.uasset b/Content/test/Blueprints/RailwayCarriages/BP_RailwayCarriage.uasset index 84ddfb9..7568ec8 100644 Binary files a/Content/test/Blueprints/RailwayCarriages/BP_RailwayCarriage.uasset and b/Content/test/Blueprints/RailwayCarriages/BP_RailwayCarriage.uasset differ diff --git a/Content/test/Blueprints/player/player.uasset b/Content/test/Blueprints/player/player.uasset index d17f5d5..34e37b1 100644 Binary files a/Content/test/Blueprints/player/player.uasset and b/Content/test/Blueprints/player/player.uasset differ diff --git a/Content/test/Blueprints/playerController/playerControllerRailwayWorkerMenu.uasset b/Content/test/Blueprints/playerController/playerControllerRailwayWorkerMenu.uasset index 9b51724..46f1d46 100644 Binary files a/Content/test/Blueprints/playerController/playerControllerRailwayWorkerMenu.uasset and b/Content/test/Blueprints/playerController/playerControllerRailwayWorkerMenu.uasset differ diff --git a/Content/test/Levels/Main.umap b/Content/test/Levels/Main.umap index 1cda9ea..9f0afaa 100644 Binary files a/Content/test/Levels/Main.umap and b/Content/test/Levels/Main.umap differ diff --git a/Content/test/UI/MAinMEnu/UI_MainMenu.uasset b/Content/test/UI/MAinMEnu/UI_MainMenu.uasset index ee97eab..6437d52 100644 Binary files a/Content/test/UI/MAinMEnu/UI_MainMenu.uasset and b/Content/test/UI/MAinMEnu/UI_MainMenu.uasset differ diff --git a/Source/railwayWorker/RailwayCarriage.cpp b/Source/railwayWorker/RailwayCarriage.cpp index 78919f8..0ddd433 100644 --- a/Source/railwayWorker/RailwayCarriage.cpp +++ b/Source/railwayWorker/RailwayCarriage.cpp @@ -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(TEXT("wheel_3")); wheel_3->AttachTo(railwayBody); + // support to focus component + //sphere_0 = CreateDefaultSubobject(TEXT("sphereForWheelFocus")); + //sphere_0->SetupAttachment(wheel_0); + } diff --git a/Source/railwayWorker/RailwayCarriage.h b/Source/railwayWorker/RailwayCarriage.h index bd68d43..fce5160 100644 --- a/Source/railwayWorker/RailwayCarriage.h +++ b/Source/railwayWorker/RailwayCarriage.h @@ -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