Adobe ATMOSPHERE User Manual page 329

Table of Contents

Advertisement

theStage.getSolidObject(0).rootPrimitive.onClick = function()
{
chat.print("You clicked the fi rst SolidObject.");
}
position
The position as a Vector.
mySceneGroup.position = Vector (10, 5, -25);
orientation
The rotational orientation of the SceneGroup (as a Rotation).
// Rotate incrementally (10%) toward the player's orientation
// (see the "Rotation" module documentation for more):
mySceneGroup.orientation = mySceneGroup.orientation.blend(player.orientation, 0.1);
transform
The Transform object representing the combined position and orientation.
// Smoothly animate between two EntryPoints
// (including their orientations) over 100 frames:
mySceneGroup.n = 0;
mySceneGroup.timestep = function()
{
this.transform = entryPoint1.transform.blend(entryPoint2.transform, this.n++/100);
}
addAnimator(mySceneGroup);
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;
bounds
The min and max extent of the SolidObject in local coordinates, relative to the SolidObject's Eye position and
orientation, expressed as an array of two Vectors [min, max].
317
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents