CarlaWheeledVehicle: Open/CloseDoorAnim implemented in code
From now on, it is not expected to be implemented in blueprint anymore.
This commit is contained in:
parent
8971cf94f1
commit
50069eac3f
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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--------------------------------
|
||||
|
|
Loading…
Reference in New Issue