Skip to content

Commit

Permalink
Fixed pedestrians being moved after dying.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel1092 authored and bernatx committed Jul 28, 2021
1 parent 7864c8c commit e22e6d8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ ECarlaServerResponse FWalkerActor::SetWalkerState(

FTransform NewTransform = Transform;
NewTransform.SetLocation(NewLocation);
SetActorGlobalTransform(NewTransform);

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

Expand Down

0 comments on commit e22e6d8

Please sign in to comment.