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. :)
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. :)
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