> this doesn't really do the trick of repelling pChip from all 
> directions, so I have been looking into the intersect, the rect,
> and the point

Keep another variable within pChip's behavior that keeps track of which
'direction' he's moving at any time.  So when pChip hits the tree, you can
check the variable and repel him off into an opposite direction.  If you
know the direction from which he's hitting the tree, you'll be able to
figure which direction to bounce him into.

HTH
Rob

/*********************************
* Rob Wingate, Software Human    *
* http://www.vingage.com         *
* mailto:[EMAIL PROTECTED] *
*********************************/

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to