deltaluca

Untitled

Apr 2nd, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # DistanceJoint
  2. body body1, body2
  3. vector anchor1, anchor2
  4. scalar jointMin, jointMax
  5.  
  6. limit jointMin 0 jointMax
  7.  
  8. constraint
  9.     let r1 = relative body1.rotation anchor1 in
  10.     let r2 = relative body2.rotation anchor2 in
  11.     | (body2.position + r2) - (body1.position + r1) |
  12.  
  13. limit constraint jointMin jointMax
Advertisement
Add Comment
Please, Sign In to add comment