Skip to content

Commit

Permalink
[junc] Fixed spawning orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
brifsttar committed Mar 16, 2023
1 parent 2dd9697 commit 662d1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/OpenDRIVE/Private/JunctionSignSpawner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void AJunctionSignSpawner::SpawnJunctionSigns() {
roadmanager::Position tp(r->GetId(), laneId, s, UuToMeters(side * TOffset));
double h_offset = FMath::DegreesToRadians(HOffset);
if (SOffset != 0.) tp.MoveAlongS(UuToMeters(side * SOffset));
tp.SetHeadingRelativeRoadDirection(-h_offset);
tp.SetHeadingRelativeRoadDirection(tp.Side() < 0 ? -h_offset : M_PI - h_offset);
FTransform t = CoordTranslate::OdrToUe::ToTransfrom(tp);
AActor *junctionSign = GetWorld()->SpawnActor<AActor>(JunctionSignClass, t);
if (!junctionSign) continue;
Expand Down

0 comments on commit 662d1b6

Please sign in to comment.