Fixed pedestrians being moved after dying.

This commit is contained in:
Axel 2021-07-28 14:37:39 +02:00 committed by bernat
parent 7864c8cc2c
commit e22e6d8027
1 changed files with 2 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ ECarlaServerResponse FWalkerActor::SetWalkerState(
FTransform NewTransform = Transform;
NewTransform.SetLocation(NewLocation);
SetActorGlobalTransform(NewTransform);
if (IsDormant())
{
FWalkerData* WalkerData = GetActorData<FWalkerData>();
@ -1105,6 +1105,7 @@ ECarlaServerResponse FWalkerActor::SetWalkerState(
}
Controller->ApplyWalkerControl(WalkerControl);
}
SetActorGlobalTransform(NewTransform);
return ECarlaServerResponse::Success;
}