Start a new topic

Get Sensor Informations

Get Sensor Informations

Hi Etienne,

In current Wikitude SDK 3.0 there is no JS api to pass compass /accelerometer values, but you can implement this feature by your own if you need it in your project.

Implement sensor listener in your native/cordova/titanium environment

use "callJavaScript" to pass sensor values in >1 second intervals, e.g. architectView.callJavaScript("compassValueUpdated(" + value + ");")

handle value in your ARchitect World

Note: JavaScript is single Threaded, small update-intervalls may drain experience

Kind regards,

Hello, Is there a way to get live sensor/accelerometers informations in the worldpage?

Or to do Working Cordova in World environnement.

Thanks in advance.

Login or Signup to post a comment