public class BillboardControl extends AbstractControl
| Modifier and Type | Class and Description |
|---|---|
static class |
BillboardControl.Alignment
Determines how the billboard is aligned to the screen/camera.
|
enabled, spatial| Constructor and Description |
|---|
BillboardControl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
controlRender(RenderManager rm,
ViewPort vp)
To be implemented in subclass.
|
protected void |
controlUpdate(float tpf)
To be implemented in subclass.
|
BillboardControl.Alignment |
getAlignment()
Returns the alignment this Billboard is set too.
|
void |
read(JmeImporter e) |
void |
setAlignment(BillboardControl.Alignment alignment)
Sets the type of rotation this Billboard will have.
|
void |
write(JmeExporter e) |
cloneFields, cloneForSpatial, getSpatial, isEnabled, jmeClone, render, setEnabled, setSpatial, updateprotected void controlUpdate(float tpf)
AbstractControlcontrolUpdate in class AbstractControltpf - time per frame (in seconds)protected void controlRender(RenderManager rm, ViewPort vp)
AbstractControlcontrolRender in class AbstractControlrm - the RenderManager rendering the controlled Spatial (not null)vp - the ViewPort being rendered (not null)public BillboardControl.Alignment getAlignment()
public void setAlignment(BillboardControl.Alignment alignment)
alignment - the desired alignment (Camera/Screen/AxialY/AxialZ)public void write(JmeExporter e) throws java.io.IOException
write in interface Savablewrite in class AbstractControljava.io.IOExceptionpublic void read(JmeImporter e) throws java.io.IOException
read in interface Savableread in class AbstractControljava.io.IOException