View Single Post
  #2  
Old 05-15-2009, 11:44 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
The vizmat module has the functions you need:

Code:
if vizmat.AngleBetweenVector(partForwardVector, fittingForwardVector) < 5
and
if vizmat.Distance(partPos, fittingPos) < .1:
snappySnap()
__________________
Paul Elliott
WorldViz LLC
Reply With Quote