Sign in to follow this  
lonewolff

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

Recommended Posts

lonewolff    1183

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this