User Guide
ADOBE ATMOSPHERE 305
User Guide
{
if (!box.loaded) { return; }
chat.print(“The box is loaded now.”);
removeAnimator(this)
}
addAnimator(box);
parent
A reference to the parent SceneGroup containing the object
myParent = myObject.parent;
orientation
The rotational orientation of the SceneGroup (as a Rotation).
// Rotate the arrow to have the same orientation as the player
arrow = SceneGroup(“./arrow.aer”);
arrow.orientation = player.orientation;
position
The position as a Vector.
// Place the box at x=10, y=5, z=-25 in the world
box = SceneGroup(“./box.aer”);
box.position = Vector(10, 5, -25);
transform
The Transform object representing the combined position and orientation.
// Smoothly animate between EntryPoints ep1 and ep2
// (including their orientations) over 100 frames:
box = SceneGroup(“./box.aer”);
box.n = 0;
box.timestep = function()
{
this.transform = ep1.transform.blend(ep2.transform, this.n++/100);
}
addAnimator(box);
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;










