Adobe ATMOSPHERE User Manual page 290

Table of Contents

Advertisement

278
APPENDIX E
chat.print("Current avatar = " + theActor.avatarURL);
showAvatar
A fl ag that determines whether the avatar is rendered.
// Hide the avatar
theActor.showAvatar = false;
position
the position as a Vector object
theActor.position = Vector(10, 5, -25);
transform
the Transform representing the combined position and orientation.
theActor.transform = entryPoint.transform;
worldSpacePosition
The worldSpacePosition of the object as a Vector.
// set the worldSpacePosition of the object to a known anchor
myObject.worldSpacePosition = myAnchor3.worldSpacePosition;
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;
facing
a Vector pointing the direction the Actor is facing
function moveActorForward(direction, distance)
{
actor.position = theActor.position.addScaled(actor.facing, dist);
}
worldSpaceFacing
a Vector pointing the direction the Actor is facing, in world space coordinates.
function moveActorForward(direction, distance)
{
actor.position = theActor.position.addScaled(actor.worldSpaceFacing, dist);
}
bodyYaw
The rotation angle about the Y axis in radians.
angle = theActor.bodyYaw;
headPitch
The pitch or tilt of the head relative to the body in radians.

Advertisement

Table of Contents
loading

Table of Contents