How to Rotate 3DTileset in its local space in UE5?

Hello, Is there any way to rotate a 3DTileset model in its local space and scale it at runtime in UE5? Thank you!

Hi @mylyt, welcome to the community!

You should be able to change the Cesium3DTileset’s orientation and scale using “Set Actor Rotation” and “Set Actor Scale 3D” Blueprint nodes, as you would any other Actor.

Thanks for your reply, I have tried using SetActorRotation and SetActorScale3D,but it disappeared after doing that, is it because its relative location is FVector(0,0,0)?

In fact, during the action of SetActorRotation, GetActorRotation returns correct rotation value, but it disappeared; when this action is done, GetActorRotation always returns FRotator(0,0,0) and it appeared with unchanged rotation.

Hi @mylyt,

It would help if you shared a minimally reproducible example so others can understand what’s going on. For example, how did you create the Blueprint on that actor? Screenshots would help too.

Hi, mylyt,

The trick is to attach Cesium3DTileset to a CesiumGeoreference and then control the rotation and scaling of the CesiumGeoreference.

The steps are as follows:

(1) Using TopView, place a Cube at the center of the Cesium3DTileset to be rotated, and then add a Cesium Globe Anchor to obtain the latitude and longitude of the position (i.e. the center of Cesium3DTileset).

(2) Add a CesiumGeoreference to the Outliner (set Origin lat, lng to the latitude and longitude of the Cesium Globe Anchor in step (1). Height can be set to a suitable value , as rotation is usually along the Z-axis and the value of Z does not matter.

(3) Attach Cesium3DTileset to CesiumGeoreference, and then reset the Transform of Cesium3DTileset. At this point, Cesium3DTileset will be offset from its original position, and the next step will be to correct it.

(4) Move CesiumGeoreference until Cesium3DTileset is aligned to its original position.

(5)Now to control the rotation and scaling of Cesium3DTileset is to control the rotation and scaling of the CesiumGeoreference.

Note that there may be multiple CesiumGeoreferences in the Outliner now, and you can manually specify a Main CesiumGeoreference in Editor.