标签:
1 var s1 = new p2.LinearSpring(holderBody, circleBody, { 2 localAnchorA: [0, 0], 3 localAnchorB: [0, 0], 4 stiffness: 100, 5 damping: 1, 6 restLength: 1.5 7 }); 8 world.addSpring(s1);
P2.JS之线性弹簧(LinearSpring)备忘
原文地址:http://www.cnblogs.com/yxzblue/p/4271412.html