Package net.phys2d.raw

Examples of net.phys2d.raw.CollisionListener


  public SimulatedWorld(WorldFactory factory) {
    // Welt erzeugen
    this.world = factory.getWorld();
   
    // Kollisionen überwachen
    this.world.addListener(new CollisionListener() {
      @Override
      public void collisionOccured(CollisionEvent event) {
        entityForBody(event.getBodyA()).collisionOccured(event, event.getBodyB());
        entityForBody(event.getBodyB()).collisionOccured(event, event.getBodyA());
      }
View Full Code Here

TOP

Related Classes of net.phys2d.raw.CollisionListener

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.