--Jump Menu--
Introduction
Director Setup
Stage Coordinate System
Standard Behavior Script
First Script: One Axis
Two Axes
Checking Conditions
Incremental Animation
Physics Model
Surface Gravity
Combining Forces
Friction
Spring Forces
Mass
General Gravity
Inventing a Force
Direction using Sine & Cosine
Of Velocity
Of Force and Acceleration
Collision
Using Spring Force
General Continuity
Independent Model Rate
Parametric Animation
Standardizing the Parameter
Driving the Parameter
Biasing the Parameter
Using the Parameter
Linear Motion
Circular Motion
Splines
Combining Motions
Independently
Dependently
More Examples
Multiple Drivers
Model/Display Separation
Two-Model Example
Recorded Animation
Time-Based Animation
3D Concepts
Rendering 3D in Director
Perspective & Other Depth Cues
Quad Property
3D World Hierarchy
3D Resource Objects
3D Camera Movement
Case Studies:
Mr. Eyes
Space Viewport
Space Viewport 2.0
Appendix:
Functions
Shifting & Scaling Numbers
Sine & Cosine Definitions
The Sine Wave
Vectors
Bezier Curves
Lingo Math Functions
Parameter Tool
The Round-Off Effect
Integer Division
Object-Oriented Fundamentals
Data Structures & Recursion
Troubleshooting Quirks
Definitions
List of Demos
Idea Swap
Animation
Math in Lingo™
Lingo Math Functions
abs(n)
returns the absolute value of n
atan(n)
returns the arc-tangent of n. See Sine
& Cosine Definitions
atan(y, x)
returns the angle, in radians, between the positive
x axis and the
vector [x,y]. Similar to atan(n), with a few differences as explained
in Sine & Cosine Definitions
bitAnd(n), bitNot(n), bitOr(n), bitXor(n)
these are binary functions. Their use in animation is
limited since they aren't continuous functions. See Director Help for
more information.
cos(t)
returns the cosine of t. See Sine
& Cosine Definitions
exp(n)
returns e ^n. e is
a significant number in calculus, with a value of about 2.72
float(n)
returns a floating point number equal to n
floatP(n)
returns 1 (true) if n is a float, 0 (false) otherwise
integer(n)
returns the integer that n rounds to
integerP(n)
returns 1 (true) if n is an integer variable, 0 (false)
otherwise
log(n)
returns the natural log of n. Natural log is log base
e . To use any base, use this expression: log(n)/log(base)
max(a,b)
returns the larger of a and b
min(a,b)
returns the smaller of a and b
mod
A mod B returns the remainder after
long-dividing B into A
random(n)
returns a random integer between 1 and n, inclusive
pi()
returns the value of pi, about 3.1415926535897...
power(a,b)
returns a raised to b ,
ab
sin(t)
returns the sine of t. See Sine
& Cosine Definitions
sqrt(n)
returns the square root of n. Equivalent to power(n,.5)
tan(t)
returns the tangent of t. Equivalent to sin(t)/cos(t).
See Sine & Cosine Definitions