Skip to main content

Class: Mouse

components.Mouse

A helper to easily get the real position of the mouse in the Three.js canvas to work with tools like the raycaster, even if it has been transformed through CSS or doesn't occupy the whole screen.

Implements

Accessors

position

get position(): Vector2

The real position of the mouse of the Three.js canvas.

Returns

Vector2

Defined in

temp/components/base-types/mouse.ts:21

Methods

dispose

dispose(): void

dispose

Returns

void

Implementation of

Disposable.dispose

Defined in

temp/components/base-types/mouse.ts:31