Class: VRObject

VRObject()

Basic VRObject, has the same properties as server counterpart.

Constructor

new VRObject()

Source:

Classes

VRObject

Members

_isLoaded

Internal, set by WorldManager after the mesh/script has loaded.
Source:

active

Active i.e. online users
Source:

animation

Active animation
Source:

className

Server-side class name
Source:

id

Id, equal on server and all instances
Source:

listeners

Event listeners. Typically world manager listens to changes, and moves objects around.
Source:

loadListeners

Load listeners, functions that trigger after the mesh or script is loaded. Managed by WorldManager. CHECKME SoC
Source:

mesh

URL of 3D mesh
Source:

permanent

Default false, permanent objects remain in the scene forever
Source:

position

Position, Point
Source:

properties

Custom properties of an object - shared transient object
Source:

rotation

Rotation, Point
Source:

scale

Scale, Point
Source:

script

URL of dynamically loaded script TODO
Source:

temporary

Everything created by guest client is by default temporary
Source:

VRSPACE

Handy reference to VRSpace instance
Source:

Methods

addListener()

Add a change listener to the object.
Source:

addLoadListener()

Add a load listener function to the object. Triggers immediatelly if mesh/script has already loaded (_isLoaded is true).
Source:

notifyListeners()

Called when server sends notification that the object has changed. Notifies all listeners of object and changes.
Source:

notifyLoadListeners()

Triggers all load listeners
Source:

publish()

Publish the object to the server. Can be used only on new objects.
Source:

removeListener()

Remove the listener.
Source:

removeLoadListener()

Remove a load listener.
Source: