Package com.jme3.scene.control
Class BillboardControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.scene.control.BillboardControl
- All Implemented Interfaces:
Savable
,Control
,JmeCloneable
,Cloneable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Determines how the billboard is aligned to the screen/camera. -
Field Summary
Fields inherited from class com.jme3.scene.control.AbstractControl
enabled, spatial
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
controlRender
(RenderManager rm, ViewPort vp) To be implemented in subclass.protected void
controlUpdate
(float tpf) To be implemented in subclass.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) Methods inherited from class com.jme3.scene.control.AbstractControl
cloneFields, cloneForSpatial, getSpatial, isEnabled, jmeClone, render, setEnabled, setSpatial, update
-
Constructor Details
-
BillboardControl
public BillboardControl()
-
-
Method Details
-
controlUpdate
protected void controlUpdate(float tpf) Description copied from class:AbstractControl
To be implemented in subclass.- Specified by:
controlUpdate
in classAbstractControl
- Parameters:
tpf
- time per frame (in seconds)
-
controlRender
Description copied from class:AbstractControl
To be implemented in subclass.- Specified by:
controlRender
in classAbstractControl
- Parameters:
rm
- the RenderManager rendering the controlled Spatial (not null)vp
- the ViewPort being rendered (not null)
-
getAlignment
Returns the alignment this Billboard is set too.- Returns:
- The alignment of rotation, AxialY, AxialZ, Camera or Screen.
-
setAlignment
Sets the type of rotation this Billboard will have. The alignment can be Camera, Screen, AxialY, or AxialZ. Invalid alignments will assume no billboard rotation.- Parameters:
alignment
- the desired alignment (Camera/Screen/AxialY/AxialZ)
-
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classAbstractControl
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classAbstractControl
- Throws:
IOException
-