Adobe ATMOSPHERE User Manual page 339

Table of Contents

Advertisement

attachedToParent
Specifi ed whether the Viewpoint object is attached to the parent SceneGroup. If the parent SceneGroup also
contains a physical model, setting this fl ag to false will also remove the physical model of the Viewpoint object,
and it will become as separate object.
viewpointObject.attachedToParent = false;
bounds
The bounds of the object in world coordinates, as an array of two Vectors [min, max].
// Hang the spider from the ceiling
spider.y = room.bounds[0].y - 2;
includeInParentRigidBody
When the parent SceneGroup containing the Viewpoint object is used to create a physical model, this fl ag
specifi es whether the Viewpoint object should be included. If set to false,the Viewpoint object will not experience
collisions, but will still be attached to the parent SceneGroup.
viewpointObject.includeInModelRigidBody = false;
newPM = parent.createConvexPhysicalModel(1.0);
loaded
Returns true once the Viewpoint object (MTX and MTS data) has fi nished loading.
if (myObject.loaded) { ... }
name
Returns the object name as defi ned in the Builder application.
objectName = viewpointObject.name;
parent
Returns the parent SceneGroup which contains this Viewpoint object.
VPparent = viewpointObject.parent;
scene
Contains a reference to the entire scenegraph of the Viewpoint object. Returns an object of type MTSScene.
handInstance = viewpointObject.scene.getInstance("hand");
receivesMouseEvents
A fl ag specifying whether mouse events are to be handled by the interactors of the Viewpoint object. Default is
true.
//Mouse events will not trigger the Viewpoint object
viewpointObject.receivesMouseEvents = false;
addDynamicHighlights
A fl ag specifying whether dynamic highlighting should be applied to the Viewpoint object.
viewpointObject.addDynamicHighlights = true;
327
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents