MotionController.MotionType
EnumEnum 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
Enum for describing the motion type.
Index
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.