Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # DistanceJoint
- body body1, body2
- vector anchor1, anchor2
- scalar jointMin, jointMax
- limit jointMin 0 jointMax
- constraint
- let r1 = relative body1.rotation anchor1 in
- let r2 = relative body2.rotation anchor2 in
- | (body2.position + r2) - (body1.position + r1) |
- limit constraint jointMin jointMax
Advertisement
Add Comment
Please, Sign In to add comment