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 importer) |
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, update
protected void controlUpdate(float tpf)
AbstractControl
controlUpdate
in class AbstractControl
tpf
- time per frame (in seconds)protected void controlRender(RenderManager rm, ViewPort vp)
AbstractControl
controlRender
in class AbstractControl
rm
- 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 Savable
write
in class AbstractControl
java.io.IOException
public void read(JmeImporter importer) throws java.io.IOException
read
in interface Savable
read
in class AbstractControl
java.io.IOException