Adobe ATMOSPHERE User Manual page 335

Table of Contents

Advertisement

SurfaceObject.n = 0;
SurfaceObject.timestep = function()
{
this.transform = entryPoint1.transform.blend(entryPoint2.transform, this.n++/100);
}
addAnimator(SurfaceObject);
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 SurfaceObject in local coordinates, expressed as an array of two Vectors [min,
max].
// Make the spider's feet just touch the fl oor
spider.y = fl oorHeight-spider.bounds[0].y;
includeInParentRigidBody
When the parent SceneGroup containing the SurfaceObject is used to create a physical model, this fl ag specifi es
whether the SurfaceObject should be included. If set to false, the SurfaceObject will not experience collisions, but
will still be attached to the parent SceneGroup.
SurfaceObject.includeInModelRigidBody = false;
newPM = parent.createConvexPhysicalModel(1.0);
useDynamicLighting
A boolean fl ag that when set to true enables the DistantLight defi ned in the script to modulate the lighting on
the SurfaceObject.
// Dynamically light the spider
spider.useDynamicLighting = true;
323
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents