Package net.phys2d.raw.strategies

Examples of net.phys2d.raw.strategies.BruteCollisionStrategy


   * @param gravity The direction and force of gravity
   * @param iterations The number of iterations to run each step. More iteration
   * is more accurate but slower
   */
  public World(Vector2f gravity, int iterations) {
    this(gravity, iterations, new BruteCollisionStrategy());
  }
View Full Code Here


  protected Grid grid;
  //map of each *moving* body to cells it currently intersects
  protected Map<Body, Set<GridCell>> currentCells;
 
  public Phys2DGridWorld(int iterations, float timestep, int width, int height, double cellWidth, double cellHeight ) {
    super(iterations, new BruteCollisionStrategy(), timestep);
    grid = new Grid(width, height, cellWidth, cellHeight);
    currentCells = new HashMap<Body, Set<GridCell>>(15);
  }
View Full Code Here

  private float positionTolerance;
  private ArrayList sources = new ArrayList();

  public strictfp World(Vector2f paramVector2f, int paramInt)
  {
    this(paramVector2f, paramInt, new BruteCollisionStrategy());
  }
View Full Code Here

TOP

Related Classes of net.phys2d.raw.strategies.BruteCollisionStrategy

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.