Settings for configuring a motion controller.

const MotionControllerModule = require("LensStudio:MotionControllerModule")
let options = MotionController.Options.create()
options.motionType = MotionController.MotionType.ThreeDoF
const motionController = MotionControllerModule.getController(options)
interface MotionControllerOptions {
    controllerId: string;
    motionType: MotionType;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

controllerId: string

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.

motionType: MotionType

Represents the motion type of the motion controller.

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean