add new function in scenario
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -28,10 +28,22 @@ ARailwayCarriage::ARailwayCarriage()
|
||||
wheel_3->AttachTo(railwayBody);
|
||||
|
||||
// support to focus component
|
||||
//sphere_0 = CreateDefaultSubobject<USphereComponent>(TEXT("sphereForWheelFocus"));
|
||||
//sphere_0->SetupAttachment(wheel_0);
|
||||
|
||||
|
||||
dotCoordinate_0 = CreateDefaultSubobject<USceneComponent>(TEXT("sphereForWheel1Focus"));
|
||||
dotCoordinate_0->AttachTo(railwayBody);
|
||||
dotCoordinate_1 = CreateDefaultSubobject<USceneComponent>(TEXT("sphereForWheel2Focus"));
|
||||
dotCoordinate_1->AttachTo(railwayBody);
|
||||
dotCoordinate_2 = CreateDefaultSubobject<USceneComponent>(TEXT("sphereForWheel3Focus"));
|
||||
dotCoordinate_2->AttachTo(railwayBody);
|
||||
dotCoordinate_3 = CreateDefaultSubobject<USceneComponent>(TEXT("sphereForWheel4Focus"));
|
||||
dotCoordinate_3->AttachTo(railwayBody);
|
||||
dotCoordinate_4 = CreateDefaultSubobject<USceneComponent>(TEXT("sphereForWheel5Focus"));
|
||||
dotCoordinate_4->AttachTo(railwayBody);
|
||||
dotCoordinate_5 = CreateDefaultSubobject<USceneComponent>(TEXT("sphereForWheel6Focus"));
|
||||
dotCoordinate_5->AttachTo(railwayBody);
|
||||
dotCoordinate_6 = CreateDefaultSubobject<USceneComponent>(TEXT("sphereForWheel7Focus"));
|
||||
dotCoordinate_6->AttachTo(railwayBody);
|
||||
dotCoordinate_7 = CreateDefaultSubobject<USceneComponent>(TEXT("sphereForWheel8Focus"));
|
||||
dotCoordinate_7->AttachTo(railwayBody);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "GameFramework/Actor.h"
|
||||
#include "RailwayCarriage.generated.h"
|
||||
|
||||
//~~~~~ Forward Declarations~~~~~
|
||||
|
||||
|
||||
|
||||
@@ -46,22 +47,22 @@ protected:
|
||||
|
||||
// components to focus camera
|
||||
|
||||
//UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
|
||||
// USphereComponent* sphere_0;
|
||||
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
|
||||
UStaticMeshComponent* sphere_1;
|
||||
USceneComponent* dotCoordinate_0;
|
||||
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
|
||||
UStaticMeshComponent* sphere_;
|
||||
USceneComponent* dotCoordinate_1;
|
||||
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
|
||||
UStaticMeshComponent* sphere_3;
|
||||
USceneComponent* dotCoordinate_2;
|
||||
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
|
||||
UStaticMeshComponent* sphere_4;
|
||||
USceneComponent* dotCoordinate_3;
|
||||
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
|
||||
UStaticMeshComponent* sphere_5;
|
||||
USceneComponent* dotCoordinate_4;
|
||||
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
|
||||
UStaticMeshComponent* sphere_6;
|
||||
USceneComponent* dotCoordinate_5;
|
||||
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
|
||||
UStaticMeshComponent* sphere_7;
|
||||
USceneComponent* dotCoordinate_6;
|
||||
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "SupportComponent")
|
||||
USceneComponent* dotCoordinate_7;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user