Jump to content

Help creating a chain object using phaser+Box2d plugin


kerankousyal
 Share

Recommended Posts

Hi,

 

I am new to phaser and box2d and I am trying to create a chain using revolute joints.I am able to create the  chain with sample code provided in Phaser documentation.

 

I have added a weight to the middle of the chain (like a pendant).Now I want this weight to slide/move along the chain when I pull the weight with the mouse (I have added mouseDrag,mouseMove.).

 

I tried all kinds of joints and possible ways I could think of but couldnt make it work.Can somebody please help me do this?

 

Thanks,

keran

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...