Package org.xith3d.scenegraph

Examples of org.xith3d.scenegraph.Transform


         */
        Texture nuages = ResBag.getTexture(ResourceNames.NUAGES);
        this.addChild(new RectBillboard(nuages, 8f * 15f,
                6f * 15f, ZeroPointLocation.CENTER_CENTER, -30f));
        Texture soleil = ResBag.getTexture(ResourceNames.SOLEIL);
        this.addChild(new Transform(new RectBillboard(soleil,
                8f * 2f, 6f * 2f, ZeroPointLocation.BOTTOM_CENTER, -25f))
                .setTranslationZ(13f));
       
        /*
         * Terrain
 
View Full Code Here


  public Food(World world, float x, float y, float z) {
    this.world = world;
   
    this.pos = new Vector3f(x, y, z);
   
    this.addChild(new Transform().setTranslation(x, y, z + .5f).add(
        new Random(System.currentTimeMillis()).nextBoolean()
    ? getApple() : getDrink()));
   
    this.level = 60f;
  }
View Full Code Here

         * GFX
         */
        // is he obese ?
        isObese = dominance.alleleB;
        float scale = (isObese) ? .9f : .6f;
        transform = new Transform();
        transform.setScale(scale);
        // give him his proper way of moving (legs or wheel)
        transform.addChild(dominance.alleleD ? getLegs() : getWheels());
        material = ((Shape3D)transform.findFirst(Shape3D.class)).getAppearance(true).getMaterial();
       
View Full Code Here

TOP

Related Classes of org.xith3d.scenegraph.Transform

Copyright © 2018 www.massapicom. 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.