Package boids.physics

Examples of boids.physics.Alignment


        //addComponent(new VBOModel2D(LINES, vertices, colors(color, 2)));
        addBehavior(ellipse(color, 16, 16, 10));
        addBehavior(new RigidBody());
       
        cohesion = new Cohesion(this, Boids.BOID_COHESION, IntensityModel.INVERSE);
        alignment = new Alignment(this, Boids.BOID_ALIGNMENT, IntensityModel.INVERSE);
        separation = new Cohesion(this, -Boids.BOID_SEPARATION, IntensityModel.INVERSE_SQUARE);
       
        pos.x = getCanvasWidth() * (float)Math.random();
        pos.y = getCanvasHeight() * (float)Math.random();
       
View Full Code Here

TOP

Related Classes of boids.physics.Alignment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.