JanusVR Documentation

[BUILD] Javascript: Script Objects

"Script Objects" represent the contents of any given webspace. These objects contain attributes that define their styling and other various aspects of their existence. All script objects can be accessed via the room.objects dictionary. You can find more on this dictionary in the Room Object portion of the documentation.

Example:

The below code demonstrates how you would change an object's, (whose js_id is testObject), position.

room.objects["testObject"].pos.x = "15";

String Attributes:


Vector Attributes:

Each vector attribute contains an "x", "y" and "z" property.


Float Attributes:


Integer Attributes:


Boolean Attributes:


Properties:


Methods: