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 :boolean

Active i.e. online users
Type:
  • boolean
Source:

animation :string|null

Name of the animation that is currently active
Type:
  • string | null
Source:

className :string

Server-side class name
Type:
  • string
Source:

id :number

Id, equal on server and all instances
Type:
  • number
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 :string|null

URL of 3D mesh
Type:
  • string | null
Source:

permanent :boolean

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

position :Point

Position, Point
Type:
Source:

properties

Custom properties of an object - shared transient object
Source:

rotation :Rotation|null

Rotation
Type:
Source:

scale :Point|null

Scale, Point
Type:
Source:

script :string|null

URL of dynamically loaded script
Type:
  • string | null
Source:

temporary :boolean

Everything created by guest client is by default temporary
Type:
  • boolean
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:

VRObject()

new VRObject()

Constructs a new VRObject. Basic VR Object encapsulates minimal spatial and other properties.
Source:

Classes

VRObject

Members

_isLoaded

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

active :boolean

Active i.e. online users
Type:
  • boolean
Source:

animation :string|null

Name of the animation that is currently active
Type:
  • string | null
Source:

className :string

Server-side class name
Type:
  • string
Source:

id :number

Id, equal on server and all instances
Type:
  • number
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 :string|null

URL of 3D mesh
Type:
  • string | null
Source:

permanent :boolean

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

position :Point

Position, Point
Type:
Source:

properties

Custom properties of an object - shared transient object
Source:

rotation :Rotation|null

Rotation
Type:
Source:

scale :Point|null

Scale, Point
Type:
Source:

script :string|null

URL of dynamically loaded script
Type:
  • string | null
Source:

temporary :boolean

Everything created by guest client is by default temporary
Type:
  • boolean
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: