Class: VRObject

VRObject()

Basic VRObject, has the same properties as server counterpart.

Constructor

new VRObject()

Source:

Classes

VRObject

Members

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:

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:

streamId

Used for video/audio streaming
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:

notifyListeners()

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

publish()

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

removeListener()

Remove the listener.
Source: