Table of Contents

Advertisement

{
theActor.getSolidObject(i).useDynamicLighting = true;
}
getSolidObject(index)
Returns the SolidObject at the given index that is contained by the actor's SceneGroup.
//print actor height compared to the world
currentHeight = ( theActor.getSolidObject(0).position[1]
chat.print("Your avatar is currently this high: " + currentHeight);
getViewpointObjectCount()
Returns the Viewpoint object count for the Actor's SceneGroup currently in use. This is useful for modifying
avatar properties, such as dynamic lighting.
for (i = 0; i < theActor.getViewpointObjectCount(); i++)
{
theActor.getViewpointObject(i).useDynamicLighting = true;
theActor.getViewpointObject(i).addDynamicHighlights = true;
}
getViewpointObject(index)
Returns the Viewpoint object specifi ed for the actor avatar currently in use.
chat.print("actor Viewpoint object (0) name = + theActor.getViewpointObject(0).name );

Anchor

The Anchor scene element is a useful object for 'holding' a desired position and orientation, which can then be
accessed and used at a later time in the browsing experience. An Anchor has no geometric volume, which places it's
pivot point at the exact origin. This is useful for using an anchor to specify an axis of rotation. A series of numbered
Anchors is useful for designating points along a path for use in such things as a guided tour, or to load and place an
array of objects in pre-determined positions.
Local Properties
type
The object's type; returns "Anchor".
if (myObject.type == 'Anchor') { ... }
name
Returns the name of the object as assigned in the Application.
if (myObject.name == 'myCoolObject') { ... }
loaded
Returns true once the object has fi nished loading.
- stageModel.getSolidObject(0).position[1] );
285
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents