CarlaWheeledVehicle: Open/CloseDoorAnim implemented in code

From now on, it is not expected to be implemented in blueprint anymore.
This commit is contained in:
Daniel Santos-Olivan 2021-09-10 12:01:03 +02:00 committed by bernat
parent 8971cf94f1
commit 50069eac3f
2 changed files with 6 additions and 8 deletions

View File

@ -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();
}

View File

@ -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--------------------------------