@@ -30,53 +30,51 @@ class RAPYUTASIMULATIONPLUGINS_API ATurtlebotBurger : public ARobotVehicle
30
30
31
31
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason) override ;
32
32
33
- public:
34
33
// Called every frame
35
34
virtual void Tick (float DeltaTime) override ;
36
35
37
36
UFUNCTION (BlueprintCallable)
38
37
virtual void Init ();
39
38
40
39
UPROPERTY (EditAnywhere, BlueprintReadWrite)
41
- UStaticMeshComponent* Base;
40
+ UStaticMeshComponent* Base = nullptr ;
42
41
43
42
UPROPERTY (EditAnywhere, BlueprintReadWrite)
44
- UStaticMeshComponent* LidarSensor;
43
+ UStaticMeshComponent* LidarSensor = nullptr ;
45
44
46
45
UPROPERTY (EditAnywhere, BlueprintReadWrite)
47
- UStaticMeshComponent* WheelLeft;
46
+ UStaticMeshComponent* WheelLeft = nullptr ;
48
47
49
48
UPROPERTY (EditAnywhere, BlueprintReadWrite)
50
- UStaticMeshComponent* WheelRight;
49
+ UStaticMeshComponent* WheelRight = nullptr ;
51
50
52
51
UPROPERTY (EditAnywhere, BlueprintReadWrite)
53
- UStaticMeshComponent* CasterBack;
52
+ UStaticMeshComponent* CasterBack = nullptr ;
54
53
55
54
UPROPERTY (EditAnywhere, BlueprintReadWrite)
56
- UPhysicsConstraintComponent* Base_LidarSensor;
55
+ UPhysicsConstraintComponent* Base_LidarSensor = nullptr ;
57
56
58
57
UPROPERTY (EditAnywhere, BlueprintReadWrite)
59
- UPhysicsConstraintComponent* Base_WheelLeft;
58
+ UPhysicsConstraintComponent* Base_WheelLeft = nullptr ;
60
59
61
60
UPROPERTY (EditAnywhere, BlueprintReadWrite)
62
- UPhysicsConstraintComponent* Base_WheelRight;
61
+ UPhysicsConstraintComponent* Base_WheelRight = nullptr ;
63
62
64
63
UPROPERTY (EditAnywhere, BlueprintReadWrite)
65
- UPhysicsConstraintComponent* Base_CasterBack;
64
+ UPhysicsConstraintComponent* Base_CasterBack = nullptr ;
66
65
67
66
UPROPERTY (EditAnywhere, BlueprintReadWrite)
68
- float MaxForce = 1000 ;
67
+ float MaxForce = 1000 . f ;
69
68
70
69
UPROPERTY (EditAnywhere, BlueprintReadWrite)
71
- UMaterial* VehicleMaterial;
70
+ UMaterial* VehicleMaterial = nullptr ;
72
71
73
72
UPROPERTY (EditAnywhere, BlueprintReadWrite)
74
- UMaterial* BallMaterial;
73
+ UMaterial* BallMaterial = nullptr ;
75
74
76
75
UPROPERTY (VisibleAnywhere)
77
76
bool IsInitialized = false ;
78
77
79
- protected:
80
78
UFUNCTION ()
81
79
void SetupConstraintsAndPhysics ();
82
80
0 commit comments