Motion
Get Motion

ReferenceScripting APIMotionHit

MotionHit

interface

Where a mote was clicked: in the scene's pixels (location) and 0 to 1 (x, y), and with which button.

NameMotionHit
Kindinterface
Script reaches it asimport { MotionHit } from "motion"
Since0.3

Syntax

interface MotionHit { … }

Properties

NameTypeDescription
locationpropertyVector3Where it was, in the scene's pixels.
xpropertynumberWhere it was across the scene, 0 (left) to 1 (right).
ypropertynumberWhere it was down the scene, 0 (top) to 1 (bottom).
buttonproperty"left" | "right" | "middle"Which button it was.

See also

Vector3