deltaluca

Untitled

Mar 29th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "body b1
  2. body b2
  3. body c
  4.  
  5. vector anchor1
  6. vector anchor2
  7. vector canchor1
  8. vector canchor2
  9. scalar restlength
  10.  
  11. let r1 = relative b1.rot anchor1 in
  12. let r2 = relative b2.rot anchor2 in
  13. let c1 = relative c.rot canchor1 in
  14. let c2 = relative c.rot canchor2 in
  15.  
  16. mag((b2.pos + r2) - (c.pos + c2)) + mag((b1.pos + r1) - (c.pos + c1)) - restlength"
Advertisement
Add Comment
Please, Sign In to add comment