diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp index 3d3950c86..ddf5be32b 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.cpp @@ -664,12 +664,14 @@ void ACarlaWheeledVehicle::CloseDoor(EVehicleDoor DoorIdx) { CloseDoorAnim(DoorIdx); } -void ACarlaWheeledVehicle::OpenDoorAnim_Implementation(EVehicleDoor DoorIdx) +void ACarlaWheeledVehicle::OpenDoorAnim(EVehicleDoor DoorIdx) { UE_LOG(LogTemp, Warning, TEXT("OpenDoorAnim_Implementation.")); + DoorTimelineDefault->Play(); } -void ACarlaWheeledVehicle::CloseDoorAnim_Implementation(EVehicleDoor DoorIdx) +void ACarlaWheeledVehicle::CloseDoorAnim(EVehicleDoor DoorIdx) { UE_LOG(LogTemp, Warning, TEXT("CloseDoorAnim_Implementation.")); + DoorTimelineDefault->Reverse(); } diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.h b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.h index 0845ee883..3ce08d41b 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.h +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/CarlaWheeledVehicle.h @@ -341,16 +341,12 @@ public: UFUNCTION(Category = "CARLA Wheeled Vehicle", BlueprintCallable) void CloseDoor(EVehicleDoor DoorIdx); - UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "CARLA Wheeled Vehicle") + UFUNCTION(Category = "CARLA Wheeled Vehicle", BlueprintCallable) void OpenDoorAnim(EVehicleDoor DoorIdx); - virtual void OpenDoorAnim_Implementation(EVehicleDoor DoorIdx); - - UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "CARLA Wheeled Vehicle") + UFUNCTION(Category = "CARLA Wheeled Vehicle", BlueprintCallable) void CloseDoorAnim(EVehicleDoor DoorIdx); - virtual void CloseDoorAnim_Implementation(EVehicleDoor DoorIdx); - virtual FVector GetVelocity() const override; //-----CARSIM--------------------------------