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 (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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback