Package com.jme3.scene

Examples of com.jme3.scene.Geometry.scale()


    helloText.setLocalTranslation(300, helloText.getLineHeight(), 0);
    guiNode.attachChild(helloText);

    // Load a model from test_data (OgreXML + material + texture)
    Spatial ninja = assetManager.loadModel("Models/Ninja/Ninja.mesh.xml");
    ninja.scale(0.05f, 0.05f, 0.05f);
    ninja.rotate(0.0f, -3.0f, 0.0f);
    ninja.setLocalTranslation(0.0f, -5.0f, -2.0f);
    rootNode.attachChild(ninja);
    // You must add a light to make the model visible
    DirectionalLight sun = new DirectionalLight();
View Full Code Here


public class Player extends Node {

  public Player(AssetManager assetManager) {
     Spatial hull = assetManager.loadModel("ship/glider/Hull.mesh.xml");
//    Spatial hull = assetManager.loadModel("ship/smallCarrier/Hull.mesh.xml");
     hull.scale(0.05f, 0.05f, 0.05f);

    Spatial kanzel = assetManager.loadModel("ship/glider/Kanzel.mesh.xml");
//    Spatial kanzel = assetManager.loadModel("ship/smallCarrier/Window.mesh.xml");
    kanzel.scale(0.05f, 0.05f, 0.05f);
View Full Code Here

//    Spatial hull = assetManager.loadModel("ship/smallCarrier/Hull.mesh.xml");
     hull.scale(0.05f, 0.05f, 0.05f);

    Spatial kanzel = assetManager.loadModel("ship/glider/Kanzel.mesh.xml");
//    Spatial kanzel = assetManager.loadModel("ship/smallCarrier/Window.mesh.xml");
    kanzel.scale(0.05f, 0.05f, 0.05f);

//    Spatial cargo = assetManager.loadModel("ship/smallCarrier/Cargo.mesh.xml");
//    cargo.scale(0.05f, 0.05f, 0.05f);

//    Spatial wingGun = assetManager.loadModel("ship/smallCarrier/WingGun.mesh.xml");
View Full Code Here

    viewPort.addProcessor(fpp);

    // Skybox
    rootNode.attachChild(SkyBoxFactory.createSimpleSkyBox(assetManager));
    Spatial tree = assetManager.loadModel("stuff/trees/fir/Tree.mesh.xml");
    tree.scale(0.05f, 0.05f, 0.05f);
    rootNode.attachChild(tree);

    Spatial leaves = assetManager
        .loadModel("stuff/trees/fir/Leaves.mesh.xml");
    leaves.scale(0.05f, 0.05f, 0.05f);
View Full Code Here

    tree.scale(0.05f, 0.05f, 0.05f);
    rootNode.attachChild(tree);

    Spatial leaves = assetManager
        .loadModel("stuff/trees/fir/Leaves.mesh.xml");
    leaves.scale(0.05f, 0.05f, 0.05f);
    rootNode.attachChild(leaves);

    Spatial sign = assetManager.loadModel("stuff/signs/Sign.mesh.xml");
    sign.setLocalTranslation(0.3f, 0.1f, 0f);
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.