deltaluca

Untitled

Apr 2nd, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var pivot = new SymbolicConstraint("
  2. body b1, b2
  3. vector anchor1, anchor2
  4. (relative b2.rot anchor2 + b2.pos) - (relative b1.rot anchor1 + b1.pos)
  5. ");
  6.  
  7. pivot.setBody("b1", ...);
  8. pivot.setBody("b2", ...);
  9. pivot.setVector("anchor1", ...);
  10. pivot.setVector("anchor2", ...);
  11. pivot.space = ...;
Advertisement
Add Comment
Please, Sign In to add comment