Module |
|
Header |
/Engine/Plugins/Lumin/MagicLeapPassableWorld/Source/MagicLeapSharedWorld/Public/MagicLeapSharedWorldGameState.h |
Include |
#include "MagicLeapSharedWorldGameState.h" |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, BlueprintNativeEvent, Category="AR Shared World|Magic Leap")
FTransform CalculateXRCameraRootTransform() const
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.
Alignment transform to be applied to the camera component parent.