Verlet Rope port to javascript

Hi all
i tried to port the verlet rope code from here: http://www.cocos2d-iphone.org/forums/topic/code-verlet-rope/
At all it is good and works in both cocos2d-html5 and cocos2d-jsb, but the rope has a bug: each rope’s start and end positions are not correct(see the project…).
i share it here, so if anyone can fix this let me and others know…


VRopeTest.zip (174.3 KB)

@m2 Good Job! I’ll have a try!

@m2 Oh No! VRopeTest.zip can’t download now. Could you please upload it again?