That is looking great so far! Those particles just won't leave that guy alone :)
It would be nice to control guy with the mouse somehow, so you can see what is going on more, and it feels more interactive. Really nice work! -Pete On Tue, Jan 27, 2009 at 11:00 AM, ben <[email protected]> wrote: > > new demo for my particle behaviour class > > http://www.agence-anonyme.com/blog/ > > 100 Particles (still planes) fallowing a ball with the rules of birds > flocking. > > 6 lines added to the away3D scene to manage it : > > > var partmanager:Particle3DManager = new Particle3DManager(view); > for(i=0.....) > > partmanager.addParticle (plane); //// while creating the planes, push > the plane into the manager > > partmanager.addBoidObject (plane,0.2,10); /// addin a boid behaviour ( > object3D, force/elasticity of spring, minDistance) > > > > partmanager.addAttractionObject(ballLead, 0.1); ///after creating the > leading ball: ballLead = new Sphere...... > > partmanager.addRepelObject (ballLead,0.2,30); > >partmanager.run();///onEnterFrame : > > I'm currently addin new feathers and try to get the best ratio speed/ > complexity of behaviour : > get some Event dispatched (when addin, or removing a particle, changin > a force...). > > Please comment ! I know my demos are not quite clean, but this may > help to know your advice ! > -- ___________________ Actionscript 3.0 Flash 3D Graphics Engine HTTP://AWAY3D.COM
