Class: WorldListener

WorldListener()

Convenience class to make listening to world changes easier. Add WorldListeners to a World, and WorldManager will notify them when world changes.

Constructor

new WorldListener()

Source:

Classes

WorldListener

Methods

added(vrobject)

Called when a new object is added to the scene
Parameters:
Name Type Description
vrobject a VRObject, typically a Client, added to the scene.
Source:

entered(welcome)

Called when user enters the world.
Parameters:
Name Type Description
welcome Welcome message
Source:

removed(vrobject)

Called when an object is removed from the scene
Parameters:
Name Type Description
vrobject a VRObject, typically a Client, removed from the scene
Source: