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
Nested ClassesModifier and TypeClassDescriptionstatic enumDetermines how the billboard is aligned to the screen/camera. -
Field Summary
Fields inherited from class com.jme3.scene.control.AbstractControl
enabled, spatial -
Constructor Summary
Constructors -
Method Summary
Modifier 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.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:AbstractControlTo be implemented in subclass.- Specified by:
controlUpdatein classAbstractControl- Parameters:
tpf- time per frame (in seconds)
-
controlRender
Description copied from class:AbstractControlTo be implemented in subclass.- Specified by:
controlRenderin 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:
writein interfaceSavable- Overrides:
writein classAbstractControl- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Overrides:
readin classAbstractControl- Throws:
IOException
-