Adobe ATMOSPHERE User Manual page 313

Table of Contents

Advertisement

if (myObject.name == 'myCoolObject') { ... }
loaded
Returns true once the object has fi nished loading.
if (myObject.loaded) { ... }
parent
A reference to the parent SceneGroup containing the object
myParent = myObject.parent;
position
The position of the object as a Vector.
// set the position of the object to a known anchor
myObject.position = myAnchor3.position;
orientation
The rotational orientation of the object (as a Rotation).
// set the orientation of the object to a known anchor
myObject.orientation = myAnchor3.orientation;
transform
The Transform is the combined position and orientation of the object.
// set the transform of the object to a known anchor
myObject.transform = myAnchor3.transform;
worldSpacePosition
The worldSpacePosition of the object as a Vector.
// set the worldSpacePosition of the object to a known anchor
myObject.worldSpacePosition = myAnchor3.worldSpacePosition;
worldSpaceOrientation
The worldSpaceOrientation of the object (as a Rotation).
// set the worldSpaceOrientation of the object to a known anchor
myObject.worldSpaceOrientation = myAnchor3.worldSpaceOrientation;
worldSpaceTransform
The worldSpaceTransform is the combined worldSpacePosition and worldSpaceOrientation of the object.
// set the worldSpaceTransform of the object to a known anchor
myObject.worldSpaceTransform = myAnchor3.worldSpaceTransform;
url
A new URL for the portal object, which may be any valid URL (relative or absolute) and which may also include
an alternate Atmosphere entrypoint (see details on EntryPoints elsewhere in these documents).
301
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents