How to detect collision betwen sprite & drawnode (draw segment)?

Hi, guus. How to detect collision betwen sprite & draw segment? I can create physicbody for the sprite, but still can not to create physicbody for drawsegment. I ever use physiscShapeCircle and physicShapeEdgeSegment but does’nt work. Any solution?

Hi.
Install physics editor. you can create physics body with any shape and export to cocos.

Finally i will try to add sprite to cover the line. So, i can set the physicBody…

Hi, how to detect a collision when use physic editor? In tutorial, just how to add random sprite when touches