Referencepoint - Adobe ATMOSPHERE User Manual

Table of Contents

Advertisement

302
APPENDIX E
// specify a new URL if the user answers the question correctly
if (userAnswer = true)
{
customPortal3.url = "./myFileName.aer#entryPosition2";
}

ReferencePoint

The ReferencePoint scene element is similar in use the Anchor object. Since all Atmosphere worlds contain at least
one ReferencePoint, it may be a useful way to specify a common location as you design your worlds. (Note that the
primary usage for ReferencePoint is found in the Atmosphere authoring application, where it is used to specify the
placement of any new objects or primitives during construction. Note also that the ReferencePoint has no name
property, as it cannot be named in the Authoring Appliation.)
Local Properties
type
The object's type; returns "ReferencePoint".
if (myObject.type == 'ReferencePoint') { ... }
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;

Advertisement

Table of Contents
loading

Table of Contents