Elementrat Posted April 4, 2014 Share Posted April 4, 2014 Does anyone know how a linked chain of bodies could be constrained to behave as a rope? I have no background with physics, so I'm not sure which constraints would be appropriate. Is this even possible? (No, I'm not making a cut the rope clone) Thanks! Link to comment Share on other sites More sharing options...
JP91 Posted April 4, 2014 Share Posted April 4, 2014 Hey, maybe rectangle rope, you can use p2.DistanceConstraint(). Link to comment Share on other sites More sharing options...
JP91 Posted April 7, 2014 Share Posted April 7, 2014 I meant this https://googledrive.com/host/0B2Br6oKX-RFNVnVQRTNiOFRfTzg/bodies.html Link to comment Share on other sites More sharing options...
valueerror Posted April 9, 2014 Share Posted April 9, 2014 hey jp.. i gave your example a go and tried to simplify it a little bit.. thx very much http://test.xapient.net/phaser/ALL/ropes.html Link to comment Share on other sites More sharing options...
JP91 Posted April 9, 2014 Share Posted April 9, 2014 hey that's great, now I'm trying to simulate water. Link to comment Share on other sites More sharing options...
valueerror Posted April 11, 2014 Share Posted April 11, 2014 http://test.xapient.net/phaser/ALL/chain.html here is a chain.. this looks IMHO more natural.. of course this should also be useful for building a rope Link to comment Share on other sites More sharing options...
StephenDunne Posted December 17, 2014 Share Posted December 17, 2014 I'm very new to this. Is there a way you guys are accessing the source code for the rope's that are being posted? Link to comment Share on other sites More sharing options...
clark Posted December 18, 2014 Share Posted December 18, 2014 Welcome Stephen Right click the page somewhere empty (white bit) and go to "view page source". If you are on a mac, I have no idea at all. Link to comment Share on other sites More sharing options...
valueerror Posted December 18, 2014 Share Posted December 18, 2014 i also submitted the chain example to examples.phaser.io where you can copy the source.. Link to comment Share on other sites More sharing options...
StephenDunne Posted January 29, 2015 Share Posted January 29, 2015 Thanks! Link to comment Share on other sites More sharing options...
StephenDunne Posted January 30, 2015 Share Posted January 30, 2015 Would any of you guys have a working example of a rope attached to a moving object? Or any tips? Have been messing around trying to attach that rope above to a moving sprite with no luck. Link to comment Share on other sites More sharing options...
valueerror Posted January 30, 2015 Share Posted January 30, 2015 yess i have http://test.xapient.net/phaser/ALL/snake.html Link to comment Share on other sites More sharing options...
valueerror Posted January 30, 2015 Share Posted January 30, 2015 http://test.xapient.net/phaser/attm/play the first level (WASD for controls.. and collect the anchor !! use the right mousbutton to trigger the anchor and hold it .. you can use the anchor to swing like tarzan Link to comment Share on other sites More sharing options...
StephenDunne Posted February 2, 2015 Share Posted February 2, 2015 Thats great thanks!!! Link to comment Share on other sites More sharing options...
Recommended Posts