Adobe ATMOSPHERE User Manual page 317

Table of Contents

Advertisement

{
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
arrow.orientation
position
The position as a Vector.
// Place the box at x=10, y=5, z=-25 in the world
box
box.position
transform
The Transform object representing the combined position and orientation.
// Smoothly animate between EntryPoints ep1 and ep2
// (including their orientations) over 100 frames:
box
box.n
box.timestep
{
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;
= SceneGroup("./arrow.aer");
= player.orientation;
= SceneGroup("./box.aer");
= Vector(10, 5, -25);
= SceneGroup("./box.aer");
= 0;
= function()
305
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents