AMagicLeapSharedWorldGameState::CalculateXRCameraRootTransform

Calculates the transform to be used to align coordinate spaces of connected clients.

Windows
MacOS
Linux

References

Module

MagicLeapSharedWorld

Header

/Engine/Plugins/Lumin/MagicLeapPassableWorld/Source/MagicLeapSharedWorld/Public/MagicLeapSharedWorldGameState.h

Include

#include "MagicLeapSharedWorldGameState.h"

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, BlueprintNativeEvent, Category="AR Shared World|Magic Leap")
FTransform CalculateXRCameraRootTransform() const

Remarks

Calculates the transform to be used to align coordinate spaces of connected clients.

The result should be set as the world transform of the parent of the camera component. This function is a BlueprintNativeEvent, override to implement a custom behavior. Default implementation -> inv(inv(AlignmentTransform) * ClientPinTransform) and uses only yaw component in rotation to ensure up vector alignes with gravity. The result is an average of the calculated transforms for each shared pin.

Returns

Alignment transform to be applied to the camera component parent.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss