Examples of CRBaseSituatedModel


Examples of net.lenkaspace.creeper.model.CRBaseSituatedModel

    /*World world = new World(crController);
    crController.setWorld(world);
    crController.getRenderer().setPreferredSize(new Dimension(660,660));*/
   
    //-- ... or optionally create objects and pass them to the existing world
    CRBaseSituatedModel obstacle = new CRBaseSituatedModel(0, new CRVector3d(350,325,0), new CRVector3d(100,100,0), 180, SHAPE.CIRCLE, CRRenderer.CR_GREEN_DOT);
    Agent agent1 = new Agent(0, new CRVector3d(200,200,0), 0);
    Agent agent2 = new Agent(1, new CRVector3d(300,200,0), 45);
    Agent agent3 = new Agent(2, new CRVector3d(400,200,0), 180);
   
    crController.getWorld().addSituatedModel(obstacle); //using the default CRWorld of CRController
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.