BallAndChain/ballchain.bmot
-------------------------------

This bmot uses the rotate to normals feature in the copy sop
to animate chain links that are copied to points on a deforming
grid.

The deforming grid is created by using a point sop to create a 2 point polygon
that starts at the link base and ends at the base of the ball with
the expression:
	pos X -> if($PT == 1,point(geo1,2,0,TX),0) + $F*O
	pos Y -> if($PT == 1,point(geo1,2,0.TY),)
		Note that the first equation has + $F*0 . This is sometimes
		used if there is difficulty in getting an expression to cook.

The grid is then splined and deformed with a spring sop.
A point sop follows the spring which is used to give each point point normals
to orient the chains properly when they are copied to each point using the
rotate to normals option checked in the copy sop.

The expression used in the point sop to generate the normals before the copy
is as follows:
	normal x -> $TX - point(chain,4,$PT,TX)
	normal y -> $TY - point(chain,4,$PT,TY)
	normal z -> $TZ - point(chain,4,$PT,TZ)

Hit the forward button to see the chain animate.
