altspace/utilities/shims/cursor

Detects mouse move/up/down events, raycasts to find intersected objects, then dispatches cursor move/up/down/enter/leave events that mimics Altspace events.

Methods

(static) init(scene, camera)

Initializes the cursor module

Parameters:
Name Type Description
scene THREE.Scene
camera THREE.Camera

Camera used for raycasting.