Class: Client

Client()

Representation of a client (user).

Constructor

new Client()

Source:

Extends

Classes

Client

Members

active

Active i.e. online users
Overrides:
Source:

className

Server-side class name
Overrides:
Source:

id

Id, equal on server and all instances
Overrides:
Source:

leftArmPos

Left arm position
Source:

leftArmRot

Left arm rotation, quaternion
Source:

mesh

URL of 3D mesh
Overrides:
Source:

name

Client name, must be unique
Source:

permanent

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

position

Position, Point
Overrides:
Source:

properties

Custom properties of an object - shared transient object
Overrides:
Source:

rightArmPos

Right arm position
Source:

rightArmRot

Right arm rotation, quaternion
Source:

rotation

Rotation, Point
Overrides:
Source:

scale

Scale, Point
Overrides:
Source:

sceneProperties

Scene properties
Source:

script

URL of dynamically loaded script TODO
Overrides:
Source:

streamId

Used for video/audio streaming
Overrides:
Source:

temporary

Everything created by guest client is by default temporary
Overrides:
Source:

token

Streaming token
Source:

userHeight

User height, default 1.8
Source:

VRSPACE

Handy reference to VRSpace instance
Overrides:
Source:

Methods

addListener()

Add a change listener to the object.
Overrides:
Source:

hasAvatar()

true if the client has avatar
Source:

notifyListeners()

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

publish()

publish the object to the server
Overrides:
Source:

removeListener()

Remove the listener.
Overrides:
Source: