Package com.jme.scene.shape

Examples of com.jme.scene.shape.Box.updateModelBound()


    box = new Box( "box5", new Vector3f( -50, -2, -50 ), new Vector3f( 50, 2, 50 ) );
    box.setLocalTranslation( new Vector3f( 0, -15, 0 ) );
    box.setRenderState( ts );
    box.setModelBound( new BoundingBox() );
    box.updateModelBound();
    objects.attachChild( box );

    return objects;
  }
View Full Code Here


    box = new Box( "box5", new Vector3f( -50, -2, -50 ), new Vector3f( 50, 2, 50 ) );
    box.setLocalTranslation( new Vector3f( 0, -15, 0 ) );
    box.setRenderState( ts );
    box.setModelBound( new BoundingBox() );
    box.updateModelBound();
    objects.attachChild( box );

    return objects;
  }
View Full Code Here

      Box box = new Box("position"+t, new Vector3f(-.5f, -.5f, -.5f), new Vector3f(.5f, .5f, .5f));
      box.setLocalTranslation(new Vector3f(xe, Yb, ze));
      box.setLocalScale(3f);
    box.setDefaultColor(ColorRGBA.red);
    box.setModelBound(new BoundingBox());
    box.updateModelBound();
   
    // Create a node for the missle trajectory.  This makes it possible to apply
    // a light state to the bullets.  Now that I think of it, this could probably
    // be removed by applying the LightState to the rootNode... but I don't really
    // know... too tired to try.
View Full Code Here

      Box box = new Box("position"+t, new Vector3f(-.5f, -.5f, -.5f), new Vector3f(.5f, .5f, .5f));
      box.setLocalTranslation(new Vector3f(xe, Yb, ze));
      box.setLocalScale(3f);
    box.setDefaultColor(ColorRGBA.red);
    box.setModelBound(new BoundingBox());
    box.updateModelBound();
   
    // Create a node for the missle trajectory.  This makes it possible to apply
    // a light state to the bullets.  Now that I think of it, this could probably
    // be removed by applying the LightState to the getRootNode()... but I don't really
    // know... too tired to try.
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.