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 SummaryNested ClassesModifier and TypeClassDescriptionstatic enumDetermines how the billboard is aligned to the screen/camera.
- 
Field SummaryFields inherited from class com.jme3.scene.control.AbstractControlenabled, spatial
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcontrolRender(RenderManager rm, ViewPort vp) To be implemented in subclass.protected voidcontrolUpdate(float tpf) To be implemented in subclass.Returns the alignment this Billboard is set too.voidread(JmeImporter importer) voidsetAlignment(BillboardControl.Alignment alignment) Sets the type of rotation this Billboard will have.voidwrite(JmeExporter e) Methods inherited from class com.jme3.scene.control.AbstractControlcloneFields, cloneForSpatial, getSpatial, isEnabled, jmeClone, render, setEnabled, setSpatial, update
- 
Constructor Details- 
BillboardControlpublic BillboardControl()
 
- 
- 
Method Details- 
controlUpdateprotected void controlUpdate(float tpf) Description copied from class:AbstractControlTo be implemented in subclass.- Specified by:
- controlUpdatein class- AbstractControl
- Parameters:
- tpf- time per frame (in seconds)
 
- 
controlRenderDescription copied from class:AbstractControlTo be implemented in subclass.- Specified by:
- controlRenderin class- AbstractControl
- Parameters:
- rm- the RenderManager rendering the controlled Spatial (not null)
- vp- the ViewPort being rendered (not null)
 
- 
getAlignmentReturns the alignment this Billboard is set too.- Returns:
- The alignment of rotation, AxialY, AxialZ, Camera or Screen.
 
- 
setAlignmentSets 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:
- writein interface- Savable
- Overrides:
- writein class- AbstractControl
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Overrides:
- readin class- AbstractControl
- Throws:
- IOException
 
 
-