Skip to content

Commit b3b86ec

Browse files
author
Joseph Kaile
committed
remove relative transform of tileset
1 parent 69f3dbf commit b3b86ec

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Source/CesiumRuntime/Private/Cesium3DTilesetRoot.cpp

+2-10
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,9 @@ void UCesium3DTilesetRoot::_updateAbsoluteLocation() {
6363
void UCesium3DTilesetRoot::_updateTilesetToUnrealRelativeWorldTransform() {
6464
ACesium3DTileset* pTileset = this->GetOwner<ACesium3DTileset>();
6565

66-
const FMatrix ellipsoidCenteredToUnrealWorld =
67-
pTileset->ResolveGeoreference()
68-
->ComputeEarthCenteredEarthFixedToUnrealTransformation();
69-
70-
FVector relativeLocation = VecMath::createVector(this->_absoluteLocation);
71-
72-
FMatrix tilesetActorToUeLocal =
73-
this->GetRelativeTransform().ToMatrixWithScale();
74-
7566
this->_tilesetToUnrealRelativeWorld = VecMath::createMatrix4D(
76-
ellipsoidCenteredToUnrealWorld * tilesetActorToUeLocal);
67+
pTileset->ResolveGeoreference()
68+
->ComputeEarthCenteredEarthFixedToUnrealTransformation());
7769

7870
pTileset->UpdateTransformFromCesium();
7971
}

0 commit comments

Comments
 (0)