Classes
Members
enabled
Is enabled, defaults to true.
instance
Current instance @type {UserDirectionMonitor}
Methods
(static) disable()
Disables UserDirectionMonitor by unsetting static var, and disposes of running instance
(static) enable()
Enables UserDirectionMonitor by setting static var
(static) isEnabled()
Returns true if WorldManager is active, and UserDirectionMonitor is enabled
dispose()
Stop the current instance, and remove all objects added to the scene for each avatar.
examineAll()
Reprocess positions of all avatars in the scene. Called when own position changes.
indicate(avatar)
Recaluclate position of one avatar, and update or hide the indicator.
Parameters:
Name | Type | Description |
---|---|---|
avatar |
Avatar |
myChanges()
Callback triggered when local changes happen to own avatar.
If it's a position or rotation, calls examineAll().
remoteChange()
Callback triggered on remote changes to avatars in the same world. Calls indicate() for that one avatar.
removeIndicator(avatar)
Parameters:
Name | Type | Description |
---|---|---|
avatar |
Avatar |
start()
Adds change local and remote change listeners to the WorldManager.
stop()
Removes own change listeners from WorldManager.