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, optionsopt)

Initializes the cursor module

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

Camera used for raycasting.

options Object <optional>

An options object

Properties
Name Type Attributes Description
renderer THREE.WebGLRenderer <optional>

If supplied, applies cursor movement to render target instead of entire client