Skip to main content

MotionController.MotionType

Enum

Enum for describing the motion type.

  • Snapchat: not supported
  • SPECS: fully supported
  • Camera Kit Web: not supported
  • Camera Kit Mobile: not supported
  • SnapchatNot supported — SPECS only
  • SPECSFully supported
  • Camera Kit WebNot supported — SPECS only
  • Camera Kit MobileNot supported — SPECS only

Platform details

  • Snapchat — Not supported — SPECS only.

  • SPECS — Fully supported.

  • Camera Kit Web — Not supported — SPECS only.

  • Camera Kit Mobile — Not supported — SPECS only.

Enum for describing the motion type.

Index

Enumeration Members

Example

const MotionControllerModule = require('LensStudio:MotionControllerModule');
let options = MotionController.Options.create();
options.motionType = MotionController.MotionType.SixDoF;
const motionController = MotionControllerModule.getController(options);

const sceneObject = script.getSceneObject();
const transform = sceneObject.getTransform();

motionController.onTransformEvent.add((worldPosition, worldRotation) => {
transform.setWorldPosition(worldPosition);
transform.setWorldRotation(worldRotation);
});

Enumeration Members

NoMotion

NoMotion: number

SPECS only

Transform of this object does not change.


SixDoF

SixDoF: number

SPECS only

Both position and rotation of the object are changed.


ThreeDoF

ThreeDoF: number

SPECS only

Only the rotation of the object is changed.