MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / GetPose

Method GetPose

Plugins/NativeXr/Source/NativeXr.cpp:1063–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061
1062 private:
1063 Napi::Value GetPose(const Napi::CallbackInfo& info)
1064 {
1065 // TODO: Once multiple reference views are supported, we need to convert the values into the passed in reference space.
1066 Napi::Object napiPose = XRPose::New(info);
1067 XRPose* pose = XRPose::Unwrap(napiPose);
1068 pose->Update(info, m_hitPose);
1069
1070 return napiPose;
1071 }
1072
1073 // The hit pose in default ARCore space.
1074 xr::Pose m_hitPose;

Callers

nothing calls this directly

Calls 2

UnwrapFunction · 0.50
UpdateMethod · 0.45

Tested by

no test coverage detected