CLEAR

DeviceMotionModule


The DeviceMotionModule class enables device movement detection.

Example

const Reactive = require('Reactive');
const DeviceMotion = require('DeviceMotion');
const Scene = require('Scene');

var boundPlane = Scene.root.child('Device').child('Camera').child('Focal Distance').child('boundPlane');

boundPlane.transform.rotationX = DeviceMotion.worldTransform.rotationX;
boundPlane.transform.rotationY = DeviceMotion.worldTransform.rotationY;
boundPlane.transform.rotationZ = DeviceMotion.worldTransform.rotationZ;

Properties

PropertyDescription

worldTransform

(get) worldTransform: TransformSignal (set) (Not Available)

Specifies a TransformSignal representing the device transformation relative to world coordinate system.

Methods

This class exposes no methods.