Package net.phys2d.raw.shapes

Examples of net.phys2d.raw.shapes.DynamicShape


    world.add(body1);
   
    for (int y=0;y<5;y++) {
      int xbase = 250 - (y * 21);
      for (int x=0;x<y+1;x++) {
        DynamicShape shape = new Box(40,40);
        if ((x == 1) && (y == 2)) {
          shape = new Circle(19);
        }
        if ((x == 1) && (y == 4)) {
          shape = new Circle(19);
View Full Code Here


    for (int i=0;i<9;i++) {
      float size = 6;
      if (i == 0) {
        size = 10;
      }
      DynamicShape shape = new Circle(size);
      Body body = new Body(shape, i == 0 ? 100.0f : 10.0f);
      body.setFriction(0.4f);
      body.setPosition(170.0f + (i*20), 171.0f);
      body.setRotation(0.0f);
      world.add(body);
View Full Code Here

TOP

Related Classes of net.phys2d.raw.shapes.DynamicShape

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.