Adobe ATMOSPHERE User Manual page 291

Table of Contents

Advertisement

pitchAngle = theActor.headPitch;
velocity
the Actor's velocity Vector in the World coordinate frame
theActor.velocity = Vector(0, 10, 10); // Jump up and forward
acceleration
An acceleration vector which is applied to the Actor.
// Apply an acceleration in the X direction (continuous).
theActor.acceleration = Vector(20, 0, 0);
worldSpaceVelocity
the Actor's velocity Vector in the World coordinate frame.
theActor.worldSpaceVelocity = Vector(0, 10, 10); // Jump up and forward
worldSpaceAcceleration
An acceleration vector which is applied to the Actor (in world space coordinates).
// Apply an acceleration in the X direction (continuous).
theActor.worldSpaceAcceleration = Vector(20, 0, 0);
bodySpaceVelocity
A vector that represents the velocity of the actor relative to the world.
if (theActor.bodySpaceVelocity.length > 20)
{
chat.print("The actor is moving fast.");
}
targetVelocity
A velocity that the actor tries to match when at rest. This may be set to non-zero when trying to track a moving
object.
theActor.targetVelocity = Vector(0.0, 0.0, 1.0);
targetWorldSpaceVelocity
A velocity that the actor tries to match when at rest, in world space coordinates. This may be set to non-zero
when trying to track a moving object.
theActor.targetWorldSpaceVelocity = Vector(0.0, 0.0, 1.0);
forwardSpeed
the Actor's forward velocity, facing the Actor's current direction for this rendered frame
theActor.forwardSpeed += 20; // Jump straight forward
lateralSpeed
the Actor's lateral velocity, facing the Actor's current direction for this rendered frame
theActor.lateralSpeed += 20; // Jump straight to the right
279
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents