/*
* 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());
}
}