• Advertisement
Sign in to follow this  

Formula / class for creating a rope for 2D side scroller

This topic is 1637 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Guys,

 

Does anyone know of a formula / class for creating a rope for 2D side scroller.

 

Ideally I would like to create something like the rope used in Limbo, where it reacts to physics etc.

 

Any help would be awesome. :)

 

Share this post


Link to post
Share on other sites
Advertisement

Well the formula would be

 

Force = mass * acceleration

 

or

 

F = ma

 

;)

 

You can model a rope as a series of point masses constrained by fixed distances between them. You'd probably be better checking out a physics library though. They used Box2D for angry birds, that should be good for a 2d game, http://en.wikipedia.org/wiki/Box2D

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement