Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ void ASimModeBase::BeginPlay()
player_loc = player_start_transform.GetLocation();
// Move the world origin to the player's location (this moves the coordinate system and adds
// a corresponding offset to all positions to compensate for the shift)
this->GetWorld()->SetNewWorldOrigin(FIntVector(player_loc) + this->GetWorld()->OriginLocation);
// and mess up whole level!!!
//this->GetWorld()->SetNewWorldOrigin(FIntVector(player_loc) + this->GetWorld()->OriginLocation);

// Regrab the player's position after the offset has been added (which should be 0,0,0 now)
player_start_transform = fpv_pawn->GetActorTransform();
global_ned_transform_.reset(new NedTransform(player_start_transform,
Expand Down