Adobe ATMOSPHERE User Manual page 326

Table of Contents

Advertisement

314
APPENDIX E
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;
Local Methods
defi neCustomPropertyValue(type, name, value, ref, mod)
For use in the top section of the script to create the custom properties which will be exposed in the Authoring
Application Inspector Palette. The Authoring Application user may modify the default values (if you allow), and
link properties from one script to another. This method should only be used to create the custom properties, and
again, only in the 'authoring' section of the script. A description of the arguments for this call are shown below
in the code example.
// The target object which will be moved.
this.defi neCustomPropertyValue(

Advertisement

Table of Contents
loading

Table of Contents