Package com.jme3.scene

Examples of com.jme3.scene.Node.move()


        head.attachChild(basePlate);

        Geometry cameraBody = new Geometry("camera_body", new Cylinder(12, 12, 8, 15, true));
        cameraBody.setMaterial(blackAluminumTexture);
        cameraBody.rotate((float) Math.PI / 2, 0f, 0f);
        cameraBody.move(-6, -50 / 2 + 15 / 2, 8 + 3);
        head.attachChild(cameraBody);
       
        Camera cam = defaultCamera.clone();
        cam.setViewPort(0f, 0.5f, 0.5f, 1.0f);
        cam.setFrustumFar(500);
View Full Code Here


        nozzle.attachChild(body);
       
        Geometry tip = new Geometry("tip", new Cylinder(12, 12, 0.5f, 10, true));
        tip.setMaterial(polishedStainlessTexture);
        tip.rotate((float) Math.PI / 2, 0f, 0f);
        tip.move(0, -15, 0);
        nozzle.attachChild(tip);

        // move the nozzle assembly in front of the rail
        nozzle.move(0, 0, 2 + 15 / 2);
       
View Full Code Here

        yRailRight.setMaterial(polishedStainlessTexture);
        yRailRight.move(300 - 6, 12.7f, 0);
        machine.attachChild(yRailRight);

        Node gantry = createGantryNode();
        gantry.move(0, 50 / 2 + 12.7f + 6, 0);
        machine.attachChild(gantry);;

        return machine;
    }
View Full Code Here

        xRail.setMaterial(polishedStainlessTexture);
        xRail.move(0, 0, 25 + 6);
        gantry.attachChild(xRail);

        Node head = createHeadNode();
        head.move(0, 10, 25 + 12 + 3);
        gantry.attachChild(head);

        return gantry;
    }
View Full Code Here

        camNode.rotate((float) Math.PI / 2, (float) Math.PI, 0);
        camNode.move(-6, -50 / 2 + 15 / 2, 8 + 3);
        head.attachChild(camNode);

        Node actuator = createActuatorAssmNode("actuator");
        actuator.move(8, -50 / 2 + 25 / 2, 4 + 3);
        head.attachChild(actuator);

        Node z1 = createZAssmNode("z1");
        z1.move(-25 + 2, 0, 3 + 2);
        head.attachChild(z1);
View Full Code Here

        Node actuator = createActuatorAssmNode("actuator");
        actuator.move(8, -50 / 2 + 25 / 2, 4 + 3);
        head.attachChild(actuator);

        Node z1 = createZAssmNode("z1");
        z1.move(-25 + 2, 0, 3 + 2);
        head.attachChild(z1);

        Node z2 = createZAssmNode("z2");
        z2.move(25 - 2, 0, 3 + 2);
        head.attachChild(z2);
View Full Code Here

        Node z1 = createZAssmNode("z1");
        z1.move(-25 + 2, 0, 3 + 2);
        head.attachChild(z1);

        Node z2 = createZAssmNode("z2");
        z2.move(25 - 2, 0, 3 + 2);
        head.attachChild(z2);


        return head;
    }
View Full Code Here

        tip.rotate((float) Math.PI / 2, 0f, 0f);
        tip.move(0, -15, 0);
        nozzle.attachChild(tip);

        // move the nozzle assembly in front of the rail
        nozzle.move(0, 0, 2 + 15 / 2);
       
        zAssm.attachChild(nozzle);
       
        return zAssm;
    }
View Full Code Here

    private Spatial createTile(JSONObject environment, String key, int x, int y) throws JSONException {
        String terrain = environment.getJSONObject(key).get("terrain").toString();
        Spatial tile = model.tileTypes.get(terrain).clone();
        tile.setMaterial(model.materials.get(terrain));
        tile.setName(key);
        tile.move(x, 0, y);
        return tile;
    }

    @Deprecated
    private Geometry createObject(String key, int x, int y) {
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.