deltaluca

Untitled

Apr 2nd, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. body b1, b2
  2. vector anchor1, anchor2, direction
  3. scalar jointMin, jointMax
  4.  
  5. let dir = relative b1.rot direction in
  6. let del = (b2.pos + relative b2.rot anchor2) - (b1.pos + relative b1.rot anchor1) in
  7.  
  8. { del dot dir
  9.   del cross dir }
  10.  
  11. constraint { jointMin -inf } { jointMax inf }
Advertisement
Add Comment
Please, Sign In to add comment