Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumOriginShiftComponent.h File Reference
#include "CesiumGlobeAnchoredActorComponent.h"
#include "CoreMinimal.h"
#include "CesiumOriginShiftComponent.generated.h"

Go to the source code of this file.

Classes

class  UCesiumOriginShiftComponent
 Automatically shifts the origin of the Unreal world coordinate system as the object to which this component is attached moves. More...
 

Enumerations

enum class  ECesiumOriginShiftMode : uint8 { Disabled , SwitchSubLevelsOnly , ChangeCesiumGeoreference }
 Indicates how to shift the origin as the Actor to which a CesiumOriginShiftComponent is attached moves. More...
 

Enumeration Type Documentation

◆ ECesiumOriginShiftMode

enum class ECesiumOriginShiftMode : uint8
strong

Indicates how to shift the origin as the Actor to which a CesiumOriginShiftComponent is attached moves.

Enumerator
Disabled 

This component is disabled and will have no effect.

SwitchSubLevelsOnly 

The origin of the CesiumGeoreference will be changed when the Actor enters a new sub-level, but it will otherwise not be modified as the Actor moves.

Any objects that are not anchored to the globe with a CesiumGlobeAnchorComponent will appear to move when the Actor enters a sub-level.

ChangeCesiumGeoreference 

The origin of the CesiumGeoreference will change as the Actor moves in order to maintain small, precise coordinate values near the Actor, as well as to keep the globe's local "up" direction aligned with the +Z axis.

Any objects that are not anchored to the globe with a CesiumGlobeAnchorComponent will appear to move whenever the origin changes.

When using this mode, all Cesium3DTileset instances as well as any Actors with a CesiumGlobeAnchorComponent need to be marked Movable, because these objects will be moved when the origin is shifted.

Definition at line 16 of file CesiumOriginShiftComponent.h.