It's been a while since I played with APE. Something like this:
I probably screwed up something in there, but the gist is that you can now use projectile as your bullet (you can assign it its own sprite too, if you don't want the default boxes), which should rotate in a natural looking manner.Code:var projectile:Composite = new Composite(); var frontBit:RectangleParticle = new RectangleParticle(10,0,5, 5); frontBit.mass = 2; var backBit:RectangleParticle = new RectangleParticle(0,0,5,5); //backBit's mass is 1 by default. var connector:SpringConstraint = new SpringConstraint(frontBit, backBit, 1); projectile.particles.push(frontBit); projectile.particles.push(backBit); projectile.constraints.push(connector);




Reply With Quote