Flint Particle System Forum - A3D3ObjectClass just creates the First Object with the given properties. Sat, 26 May 2012 06:32:27 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher A3D3ObjectClass just creates the First Object with the given properties. http://flintparticles.org/forum/comments.php?DiscussionID=563&Focus=1917#Comment_1917 http://flintparticles.org/forum/comments.php?DiscussionID=563&Focus=1917#Comment_1917 Mon, 23 Apr 2012 14:48:52 +0100 progressivity
First - thanks for such a great piece of work!
Ive got a little Problem with the actual version of Flint in work with away3d 3.6.0

http://dl.dropbox.com/u/10036823/prg2012.swf
You can zoom out by using the MouseWheel, and drag around the HoverCam.

The white cubies are the Particles from Flint, but there is just one little cube outside with properties i have given.

Here is the Code part:



package
{
import away3d.materials.ColorMaterial;
import away3d.primitives.Cube;
import org.flintparticles.common.counters.Blast;
import org.flintparticles.common.initializers.ChooseInitializer;
import org.flintparticles.common.initializers.CollisionRadiusInit;
import org.flintparticles.common.initializers.InitializerGroup;
import org.flintparticles.common.initializers.MassInit;
import org.flintparticles.integration.away3d.v3.initializers.A3D3ApplyMaterial;
import org.flintparticles.integration.away3d.v3.initializers.A3D3ObjectClass;
import org.flintparticles.threeD.actions.BoundingBox;
import org.flintparticles.threeD.actions.Collide;
import org.flintparticles.threeD.actions.Move;
import org.flintparticles.threeD.emitters.Emitter3D;
import org.flintparticles.threeD.initializers.Position;
import org.flintparticles.threeD.initializers.Velocity;
import org.flintparticles.threeD.zones.BoxZone;
import org.flintparticles.threeD.zones.SphereZone;
import flash.display.DisplayObject;
import flash.geom.Vector3D;

public class particleField extends Emitter3D
{
public function particleField()
{
counter = new Blast( 50 );

addInitializer( new A3D3ObjectClass( Cube, [ { height:12, width:6, depth:6 } ] ) );
addInitializer( new A3D3ApplyMaterial( ColorMaterial, 0xFFFF00, 8 ) );
addInitializer( new Position( new BoxZone( 2000, 2000, 2000, new Vector3D( 0, 0, 0 ), new Vector3D( 0, 1, 0 ), new Vector3D( 0, 0, 1 ) ) ) );
addInitializer( new Velocity( new SphereZone( new Vector3D( 0, 0, 0 ), 15, 10 ) ) );

addAction( new Move() );
addAction( new Collide( 1 ) );
addAction( new BoundingBox( -1500, 1500, -1500, 1500, -1500, 1500, 1 ) );
}
}
}

Do you have any Idea why the other cubies wont join the properties ?

Greetings Frank ]]>
A3D3ObjectClass just creates the First Object with the given properties. http://flintparticles.org/forum/comments.php?DiscussionID=563&Focus=1918#Comment_1918 http://flintparticles.org/forum/comments.php?DiscussionID=563&Focus=1918#Comment_1918 Mon, 23 Apr 2012 20:30:01 +0100 progressivity
Greetings Frank ]]>