Package nu3a.scene

Examples of nu3a.scene.N3TransformationNode.update()


    sm.applyMaterial(true);
    for (int i = -5; i < 4; i++)
      for (int j = -5; j < 4; j++) {
        sueloTrans = new N3TransformationNode(scene, "sueloTrans" + i + "-" + j);
        sueloTrans.translate(new N3Vector3D(i * 0.4f, j * 0.4f, 0));
        sueloTrans.update();
        suelo = new N3VisualMesh(scene, g, "suelo" + i + "-" + j);
        suelo.setMaterial(sm);
        sueloTrans.addChild(suelo);
        sueloRot.addChild(sueloTrans);
      }
View Full Code Here


    cubeTrans.update();

    // El otro cubo
    N3TransformationNode cubeTrans2 = new N3TransformationNode(scene, "cubeTrans2");
    cubeTrans2.translate(new N3Vector3D(-0.5f, 0.2f, -0.5f));
    cubeTrans2.update();

    cube = new N3VisualMesh(scene, N3GeometryData.createCube(0.4f, 0.4f, 0.4f, new N3ColorRGBA(1, 1, 1), true), "cube");
    cube.setMaterial(material);

    // El otro cubo
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.