-
Notifications
You must be signed in to change notification settings - Fork 1
Objects
Josh Stovall edited this page Dec 19, 2020
·
1 revision
show/hide object
// create a box
var object = new XR.Box();
// show the box
object.show();
// hide the box
object.hide();
object.show();
object.hide();
object.color('red');
object.getColor();
// {r: 1, g: 0, b: 0}
object.position([0,4,0]);
object.getPosition();
// {x: 0, y: 4, z: 0}