Verlet Rope port to javascript


Hi all
i tried to port the verlet rope code from here:
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… (174.3 KB)


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


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