Hi!
I have been looking for a good rope sim for a while now! I need it for a project that I'm working on. This one is GREAT! I think it might be what i need to make it happen.
Someone wanted a working version... the above code just needs a bit of tweakin to get it to render. Need to:
-= addEventListener(Event.ENTER_FRAME, updateSimulation, false, 0, true) to the constructor (or anywhere really)
-= change updateSimulation() to:
Code:
public function updateSimulation(e:Event):void
{
mouseDrag();
world.Step( timeStep, iterations );
}
-= create a .fla with this in the first frame:
Code:
import <point this to your copy of the "MobilePhysics">.MobilePhysics
var oSprite:Sprite = new Sprite()
addChild(oSprite)
oSprite.x = 100
var mobileTest = new MobilePhysics(oSprite)
oSprite.addChild(mobileTest)
Hope this helps!
Thanks for all the great work you guys/gals are doing.
-=b=-