Unique string identifier for the object
Set true
to make this object invisible to mouse click and hover picking events.
This can be useful if you use this object as a marker that you move to mouse coordinates, but don't want the object itself to affect future mouse events.
Set true
to make this object invisible to mouse click and hover picking events.
This can be useful if you use this object as a marker that you move to mouse coordinates, but don't want the object itself to affect future mouse events.
Whether this object is rendered
Whether this object is rendered
Location vector x component
Location vector x component
Location vector y component
Location vector y component
Location vector z component
Location vector z component
Name of this object
Rotation quaternion w component
Rotation quaternion w component
Rotation quaternion x component
Rotation quaternion x component
Rotation quaternion y component
Rotation quaternion y component
Rotation quaternion z component
Rotation quaternion z component
Scale vector x component
Scale vector x component
Scale vector y component
Scale vector y component
Scale vector z component
Scale vector z component
Get object location in scene coordinate space (includes parent transformations)
object.getSceneLocation().then((resp) => {
console.log('Object is at', resp.x, resp.y, resp.z);
});
Get object position in screen space x and y coordinates
object.getScreenCoordinates().then((resp) => {
console.log('Object is at', resp.x, resp.y, 'pixels');
});
Refresh object values to their current states in the embed. This might be needed if object is animated and you want to read its properties as it moves around.
(Normally values are updated only after calling listAnimations()
)
Using via then() callback:
object.refresh().then(() => {
// Log current location
console.log(object.locationY);
});
Or in async function:
await object.refresh();
// Log current location
console.log(object.locationY);
A shortcut method to update whole location vector at once
A shortcut method to update whole rotation quaternion at once
Set rotation from euler angles (radians)
A shortcut method to update whole scale vector at once
Generated using TypeDoc
Whether this object has a mesh attached to it