MotionController.MotionControllerOptions
ClassSettings for configuring a motion controller.
- 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
Settings for configuring a motion controller.
Index
Properties
Methods
Example
const MotionControllerModule = require("LensStudio:MotionControllerModule")
let options = MotionController.Options.create()
options.motionType = MotionController.MotionType.ThreeDoF
const motionController = MotionControllerModule.getController(options)
Extends
Properties
controllerId
controllerId:
string
SPECS only
The unique identifier to connect to a motion controller. The only value currently supported is empty (""), which will result in the Mobile Controller being requested.
Default Value
""
@wearableOnly
motionType
motionType:
MotionType
SPECS only
Represents the motion type of the motion controller.
Default Value
MotionController.MotionType.NoMotion
@wearableOnly
Methods
create()
staticcreate():MotionControllerOptions
SPECS only
Creates the configurations to be used with the MotionController
Returns
MotionControllerOptions
getTypeName()
staticgetTypeName():TypeName<MotionControllerOptions>
SPECS only
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns
TypeName<MotionControllerOptions>
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean