Package advanced.physics.physicsShapes

Examples of advanced.physics.physicsShapes.PhysicsCircle


    //Create borders around the screen
    this.createScreenBorders(physicsContainer);
   
    //Createa circles
    for (int i = 0; i < 20; i++) {
      PhysicsCircle c = new PhysicsCircle(app, new Vector3D(ToolsMath.getRandom(60, mtApplication.width-60), ToolsMath.getRandom(60, mtApplication.height-60)), 50, world, 1.0f, 0.3f, 0.4f, scale);
      MTColor col = new MTColor(ToolsMath.getRandom(60, 255),ToolsMath.getRandom(60, 255),ToolsMath.getRandom(60, 255));
      c.setFillColor(col);
      c.setStrokeColor(col);
      PhysicsHelper.addDragJoint(world, c, c.getBody().isDynamic(), scale);
      physicsContainer.addChild(c);
    }
   
    //Create rectangle
    PhysicsRectangle physRect = new PhysicsRectangle(new Vector3D(100,300), 100, 50, app, world, 1f, 0.4f, 0.4f, scale);
View Full Code Here

TOP

Related Classes of advanced.physics.physicsShapes.PhysicsCircle

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.