Package net.anzix.fsz.proceduralterrain

Source Code of net.anzix.fsz.proceduralterrain.BillboardTree

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package net.anzix.fsz.proceduralterrain;

import com.ardor3d.math.Vector3;
import com.ardor3d.scenegraph.extension.BillboardNode;
import com.ardor3d.scenegraph.extension.BillboardNode.BillboardAlignment;
import com.ardor3d.scenegraph.shape.Quad;

/**
*
* @author kovacsandras
*/
public class BillboardTree extends BillboardNode {

    public BillboardTree(Vector3 position, double width, double height) {
        super ("Tree");
        setAlignment(BillboardAlignment.AxialY);
        final Quad quad = new Quad("Quad", width, height);
        attachChild(quad);
        setTranslation(position.getX(),position.getY()+height/2.0,position.getZ());
    }
}
TOP

Related Classes of net.anzix.fsz.proceduralterrain.BillboardTree

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.