Class: UserDirectionMonitor

UserDirectionMonitor()

Points where other users are. For each avatar that is not currently in the view, adds a thin cone pointing to their location. Works only online, requires functional WorldManager. Singleton.

Constructor

new UserDirectionMonitor()

Source:

Classes

UserDirectionMonitor

Members

enabled

Is enabled, defaults to true.
Source:

instance

Current instance @type {UserDirectionMonitor}
Source:

Methods

(static) disable()

Disables UserDirectionMonitor by unsetting static var, and disposes of running instance
Source:

(static) enable()

Enables UserDirectionMonitor by setting static var
Source:

(static) isEnabled()

Returns true if WorldManager is active, and UserDirectionMonitor is enabled
Source:

dispose()

Stop the current instance, and remove all objects added to the scene for each avatar.
Source:

examineAll()

Reprocess positions of all avatars in the scene. Called when own position changes.
Source:

indicate(avatar)

Recaluclate position of one avatar, and update or hide the indicator.
Parameters:
Name Type Description
avatar Avatar
Source:

myChanges()

Callback triggered when local changes happen to own avatar. If it's a position or rotation, calls examineAll().
Source:

remoteChange()

Callback triggered on remote changes to avatars in the same world. Calls indicate() for that one avatar.
Source:

removeIndicator(avatar)

Parameters:
Name Type Description
avatar Avatar
Source:

start()

Adds change local and remote change listeners to the WorldManager.
Source:

stop()

Removes own change listeners from WorldManager.
Source: