Package com.jmex.physics

Examples of com.jmex.physics.StaticPhysicsNode


    // TODO abstract terrain creation and loading
    try {
      Level level = new Level(new File("resources/mapOne"));
      terrain = level.getMap().getTerrain();
     
      StaticPhysicsNode staticNode = TankGame.PHYSICS.getPhysicsSpace().createStaticNode();
      root.attachChild(staticNode);
      staticNode.attachChild(terrain);
      staticNode.generatePhysicsGeometry(true);
      staticNode.setMaterial(Material.WOOD);
     
    } catch (FileNotFoundException fnfe) {
      ErrorHandler.log(fnfe.getMessage());
      ErrorHandler.exit();
    } catch (IOException ioe) {
View Full Code Here

TOP

Related Classes of com.jmex.physics.StaticPhysicsNode

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.