Package com.jmex.physics

Examples of com.jmex.physics.StaticPhysicsNode.attachChild()


      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());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.