Added a setNativeTime method to the ARkitWrapper that receives the current ARFrame timestamp. It is meant to be called 10 times from the iOS side.

This commit is contained in:
Roberto Garrido 2018-04-16 16:56:36 +02:00
Родитель c4010a301c
Коммит 52ca0ab424
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -146,6 +146,10 @@ export default class ARKitWrapper extends EventHandlerBase {
window['onComputerVisionData'] = (detail) => {
this._onComputerVisionData(detail);
}
window['setNativeTime'] = (detail) => {
console.log(detail.nativeTime)
}
/**
* The result of a raycast into the AR world encoded as a transform matrix.