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.
Jump to content
Posted 29 July 2013 - 06:48 PM
Well the formula would be
Force = mass * acceleration
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