Coaster1.bmot
-------------

This uses the "orient" function to orient an object on a roller coaster
track.  

Click on play to see the animation of the tube along the roller coaster.

The car uses the orient function in its translation and rotation 
channels to provide all the necessary translations and rotations to keep the 
car aligned to the track. For example car/rx  is set to:
	
	orient ( $OS, coaster, 10, $F, RX)

In this case, the expression provides the necessary rotation around x to 
orient the car to the polygon equal to the current frame; from the 10th
SOP in the object coaster. 


Orient vs Creep
---------------

Orient differs from using creep in several ways:

	a)  The object is not deformed
	b)  The object is positioned using it's channels

a) means that you can position objects without having to worry about how
they will be distorted on the surface.  For example, you can place a cube
on a sphere without having the cube being smaller toward the center of the
sphere.

The fact that it is positioned using channels (b) means that you can
parent objects to this object and have hierarchies positioned relative
to a polygon in a deforming object.  Hierarchies work correctly with the
orient function.  That is, if the oriented object is parented to the
object which it is orienting on, the positioning is correct.

Other uses for the orient function 
----------------------------------
	a)  positioning limbs on bodys.  The object will always be oriented
	    so that it is positioned at the centroid of the polygon, with
	    it's Z axis pointing along the normal of the polygon.  The
	    X axis is determined by the direction of the center of the
	    polygon to the first point of the polygon.  The Y axis is
	    determined by the Z and X axes.
        b)  floating bottles and ships. The object will always be oriented
	    so that it is aligned to the surface; especially useful for a 
	    deforming surface such as waves.


